Vote count:
0
Why is flip id
accepted as valid expression? Shouldn't it fail at type check of a
against b -> c
?
Prelude> :t flip
flip :: (a -> b -> c) -> b -> a -> c
Prelude> :t id
id :: a -> a
Prelude> :t flip id
flip id :: b -> (b -> c) -> c
asked 2 mins ago
How does `flip id` work?
Aucun commentaire:
Enregistrer un commentaire