mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 15:45:52 +03:00
12 lines
136 B
Plaintext
12 lines
136 B
Plaintext
use Maybe/{some,none}
|
|
|
|
bind <A> <B>
|
|
- ma: (Maybe A)
|
|
- f: A -> (Maybe B)
|
|
: (Maybe B)
|
|
|
|
match ma {
|
|
some: (f ma.value)
|
|
none: (none _)
|
|
}
|