mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-08-17 00:20:32 +03:00
8 lines
171 B
Plaintext
8 lines
171 B
Plaintext
Maybe
|
|
: ∀(T: *) *
|
|
= λT
|
|
$(self: (Maybe T))
|
|
∀(P: ∀(x: (Maybe T)) *)
|
|
∀(some: ∀(value: T) (P (Maybe.some T value)))
|
|
∀(none: (P (Maybe.none T)))
|
|
(P self) |