RosettaCodeData/Task/Palindrome-detection/Rascal/palindrome-detection-2.rascal
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

6 lines
131 B
Text

import String;
public bool palindrome(str text){
text = replaceAll(toLowerCase(text), " ", "");
return text == reverse(text);
}