Palindrome detection: Difference between revisions

m
→‎Icon and Unicon: header simplification
m (→‎Icon and Unicon: header simplification)
Line 658:
ENDDO
END</lang>
== {{header|Icon}} and {{header|Unicon }}==
==={{header|Icon}}===
<lang Icon>procedure main(arglist)
every writes(s := !arglist) do write( if palindrome(s) then " is " else " is not", " a palindrome.")
Line 678 ⟶ 677:
return x
end</lang>
 
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Ioke}}==
Anonymous user