[Haskell-cafe] reverse with foldl

Miguel Mitrofanov miguelimo38 at yandex.ru
Fri Sep 21 02:30:05 EDT 2007


> reverse = foldl (\x -> \xs -> xs:x) []

Doesn't typecheck.


More information about the Haskell-Cafe mailing list