Discussions: https://t.me/fpncr
Web: https://functionalprogramming.in/
nothing :: forall a. Maybe a
nothing :: forall a. Maybe a
Currying means that for any arbitrary object A, functions of the form -
(A,()) -> X
are the same as functions of the form -
A -> (() -> X)
1/2
Currying means that for any arbitrary object A, functions of the form -
(A,()) -> X
are the same as functions of the form -
A -> (() -> X)
1/2
Combining we can see that functions of the form -
A->X are the same as A->(()->X)
This means (by yoneda lemma) that X is the same as ()->X
QED
2/2
Combining we can see that functions of the form -
A->X are the same as A->(()->X)
This means (by yoneda lemma) that X is the same as ()->X
QED
2/2
Currying means that for any arbitrary object A, functions of the form -
(A,()) -> X
are the same as functions of the form -
A -> (() -> X)
1/2
Currying means that for any arbitrary object A, functions of the form -
(A,()) -> X
are the same as functions of the form -
A -> (() -> X)
1/2