Palindrome detection: Difference between revisions
Content deleted Content added
ReeceGoding (talk | contribs) m →{{header|R}}: Improved syntax. |
→{{header|Quackery}}: added inexact and twiddle indexing |
||
Line 4,461:
=={{header|Quackery}}==
<lang Quackery> [ dup reverse = ] is palindromic ( [ --> b )
[ [] swap witheach
[ upper dup
dup lower = iff
drop else join ]
palindromic ] is inexactpalindrome ( $ --> b )</lang>
===With twiddle indexing===
<lang Quackery> [ true swap
dup size 1 >> times
[ dup i peek
over i ~ peek != if
[ dip not conclude ] ]
drop ] is palindromic ( [ --> b )</lang>
=={{header|R}}==
|