4 ms·
"Try haskell expression here" + lessons is very nice. Just a little nitpick: λ map (+1) [1..5] can't find file: Imports.hs λ map (+ 1) [1..5]
by dmytrish 12y ago
"Try haskell expression here" + lessons is very nice.
Just a little nitpick:
λ map (+1) [1..5]
can't find file: Imports.hs
λ map (+ 1) [1..5]
[2,3,4,5,6]:: (Enum b, Num b) => [b]
though the first expression is what suggested in lesson 4.
Edit: looks like some random bug.
- deleted 12y ago[deleted]
- msl09 12y agoyep, you are not the only one that had that problem λ foldr (:) [] [1,2,3] :: Num a => [a] λ foldr (:) [] [1,2,3] [1,2,3] :: Num a => [a]
- fleitz 12y agoI had similar issues with the first expression, sometimes when executing a new expression I also had to type it twice to get the answer.
- serf 12y agome too.. λ let (_,(a:_)) = (10,"abc") in a can't find file: Imports.hs λ let (_,(a:_)) = (10,"abc") in a 'a' :: Char