We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Palindrome

From Esolang
Jump to navigation Jump to search
For the language, see Palindrome (language).

A palindrome is a string which reads the same forwards and backwards; that is, some string S where S = reverse(S).

Esoteric programming is primarily concerned with such strings which are programs, especially interesting ones. This generally rules out trivial palindromic programs, such as where only the first half or only the second half of the code is executed (either because the remaining half is comment or because a halt instruction is placed in the middle).

Non-trivial palindromic programs can be written in Befunge and other languages.

See also

External resources