Open utterances-bot opened 2 years ago
I think this is a typo (the second True
should be False
):
which I might express more naturally in Haskell via:
ifThenElse :: Bool -> a -> a -> a
ifThenElse True t _ = t
ifThenElse True _ f = f
Thanks for the great blog!
Fixed, thanks @armatures!
This body is missing its head
😉
Cons head tail cons nil = cons nil (tail cons nil)
Review: Codata in Action :: Reasonably Polymorphic
https://reasonablypolymorphic.com/blog/review-codata/