I'm playing with the haskell repo around a little.
why f2 behaves that way ? (I was expecting f2 takes only 1 argument), also what does t mean in the type?
BTW, why I have to prefix repo with let in order to define function?
λ> :t add -- f1
add :: Num a => a -> a
λ> let add n = (+) 1 -- f2 what does this mean?
λ> add 1 1
2
λ> :t add
add :: Num a => t -> a -> a
λ> add 1 3
4