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
good article on the state of haskell ecosystem https://github.com/Gabriel439/post-rfc/blob/master/sotu.md
Haskell Wasm:
- wasm hackage package looks like it's for generating wasm from haskell and reading wasm from haskell
- GHCJS compiles haskell to javascript
- asterius compile haskell to wasm, cool pandoc demo and sponsored by IOHK
Learning resources:
- https://lorepub.com/ for pay book, looks pretty good
- A little dated but very good intro to haskell http://learnyouahaskell.com/chapters
- Good little guide on haskell rasterization!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good haskell cheatsheet