Handbook
Glossary
fmap ( M-x quot -- M-y )
Vocabulary
monadics
Inputs
M-x
an
object
quot
an
object
Outputs
M-y
an
object
Definition
IN:
monadics
GENERIC#:
fmap
1
( M-x quot -- M-y )
Methods
USING:
accessors
kernel
monadics
;
M:
Either
fmap
over
Right?
[
[
value>>
]
dip
lazy-call
right
]
[
drop
]
if
;
USING:
accessors
kernel
monadics
;
M:
Maybe
fmap
over
Just?
[
[
value>>
]
dip
lazy-call
just
]
[
drop
]
if
;
USING:
kernel
monadics
sequences
;
M:
sequence
fmap
[
lazy-call
]
curry
map
;