| Class | Superclass | Slots |
Just | tuple | value |
Left | tuple | value |
Right | tuple | value |
Nothing |
Either |
Maybe |
| Word | Stack effect |
and-then | ( M-x quot: ( x -- M-y ) -- M-y ) |
choose | ( M-x M-x -- M-x ) |
fmap | ( M-x quot -- M-y ) |
pure | ( M-a x -- M-a M-x ) |
reify | ( M-quot M-x -- M-y ) |
| Word | Stack effect |
$> | ( M-x a -- M-x ) |
(maybe-join) | ( M-M-x -- M-x ) |
<$> | ( quot M-x -- M-y ) |
<*> | ( M-quot M-x -- M-y ) |
<Just> | ( value -- Just ) |
<Left> | ( value -- Left ) |
<Right> | ( value -- Right ) |
<|> | ( M-x M-x -- M-x ) |
>> | ( M-x M-y -- M-y ) |
>>= | ( M-x quot: ( x -- M-y ) -- M-y ) |
>maybe | ( value/f -- Maybe ) |
?either | ( x left pred -- Either-x ) |
guard-maybe | ( value quot: ( a -- bool ) -- Maybe ) |
id | ( x -- x ) |
just | ( value -- Just ) |
lazy-call | ( value quot -- value/curried ) |
left | ( value -- Left ) |
lift | ( quot M-x -- M-y ) |
monad-join | ( M-M-x -- M-x ) |
right | ( value -- Right ) |
validate | ( x pairs -- Either-x ) |
| Word | Stack effect |
Either? | ( object -- ? ) |
Just? | ( object -- ? ) |
Left? | ( object -- ? ) |
Maybe? | ( object -- ? ) |
Nothing? | ( object -- ? ) |
Right? | ( object -- ? ) |