-
Notifications
You must be signed in to change notification settings - Fork 148
Closed
Labels
Milestone
Description
Following code
isPalindrome : List comparable -> Bool
isPalindrome list =
List.map2 (,) list (List.reverse list)
|> List.foldl
(\( x, y ) acc -> if x == y then acc else False)
Trueturns to this
isPalindrome : List comparable -> Bool
isPalindrome list =
List.map2 (,) list (List.reverse list)
|> List.foldl
(\( x, y ) acc ->
if x == y then
acc
else
False
)
TrueWhat do you think about it guys?
AndrewKvalheim, srid, Zimmi48, simonewebdesign, oli-obk and 26 more