RosettaCodeData/Task/Palindrome-detection/Rascal/palindrome-detection-1.rascal

4 lines
88 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
import String;
public bool palindrome(str text) = toLowerCase(text) == reverse(text);