Kind/book/Maybe/bind.kind2

12 lines
136 B
Plaintext
Raw Permalink Normal View History

2024-03-16 04:07:01 +03:00
use Maybe/{some,none}
2024-07-09 00:13:17 +03:00
bind <A> <B>
- ma: (Maybe A)
- f: A -> (Maybe B)
: (Maybe B)
match ma {
some: (f ma.value)
none: (none _)
}