Handbook
Glossary
nested-call ( state q: ( s -- s' ) -- previous-total state' )
Vocabulary
brain-flak
.
private
Inputs
state
an
object
q
a
quotation
with stack effect
( s -- s' )
Outputs
previous-total
an
object
state'
an
object
Definition
USING:
accessors
combinators
kernel
;
IN:
brain-flak.private
:
nested-call
( state q: ( s -- s' ) -- previous-total state' )
[
[
total>>
]
[
0
>>total
]
bi
]
dip
( s -- s )
call-effect
;
inline