Handbook
Glossary
fail ( value singleton -- mvalue )
Vocabulary
monads
Inputs
value
an
object
singleton
an
object
Outputs
mvalue
an
object
Definition
IN:
monads
GENERIC:
fail
( value singleton -- mvalue )
Methods
USING:
kernel
monads
;
M:
array-monad
fail
2drop
{
}
;
USING:
kernel
monads
;
M:
either-monad
fail
drop
<left>
;
USING:
kernel
monads
;
M:
identity-monad
fail
"Fail"
throw
;
USING:
kernel
lists
monads
;
M:
list-monad
fail
2drop
nil
;
USING:
kernel
monads
;
M:
maybe-monad
fail
2drop
nothing
;
USING:
monads
;
M:
monad
fail
monad-of
fail
;
USING:
kernel
monads
;
M:
reader-monad
fail
"Fail"
throw
;
USING:
kernel
monads
;
M:
state-monad
fail
"Fail"
throw
;
USING:
kernel
monads
;
M:
writer-monad
fail
"Fail"
throw
;