mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 12:25:47 +03:00
8 lines
145 B
Plaintext
8 lines
145 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 _)
|
|
}
|