Palindrome detection: Difference between revisions

m
m (added related tasks.)
Line 174:
<lang AppleScript>use framework "Foundation"
 
------ CASE-INSENSITIVE PALINDROME, IGNORING SPACES ? ----------------------------
 
-- isPalindrome :: String -> Bool
Line 193:
 
 
-- TEST --------------------------------------------- TEST -------------------------
on run
Line 203:
 
 
-- GENERIC FUNCTIONS -------------------------------------- GENERIC FUNCTIONS -------------------
 
-- filter :: (a -> Bool) -> [a] -> [a]
Line 217:
end tell
end filter
 
 
-- intercalate :: Text -> [Text] -> Text
Line 225 ⟶ 226:
return strJoined
end intercalate
 
 
-- Lift 2nd class handler function into 1st class script wrapper
Line 237 ⟶ 239:
end if
end mReturn
 
 
-- toLower :: String -> String
9,655

edits