Test a function: Difference between revisions
Added Arturo implementation
(C++ entry) |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 91:
((Text(Text'First) = Text(Text'Last)) and then
Palindrome(Text(Text'First+1 .. Text'Last-1))));</lang>
=={{header|Arturo}}==
<lang rebol>palindrome?: function [s][
s = reverse s
]
tests: [
[true? palindrome? "aba"]
[false? palindrome? "ab" ]
]
loop tests => ensure</lang>
{{out}}
<pre></pre>
=={{header|AutoHotkey}}==
|