Prelude Data.String> foldr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"a54321"
Prelude Data.String> foldl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"54321a"
Prelude Data.String> scanr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
["a54321","a5432","a543","a54","a5","a"]
Prelude Data.String> scanl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
["a","1a","21a","321a","4321a","54321a"]
Last active
June 10, 2020 17:04
-
-
Save rudolph9/292fc8411b5deb64c9467252e19ba1aa to your computer and use it in GitHub Desktop.
Haskell intro stuff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good Haskell web scraper
stackoverflow question