4keep-under ( quot -- quot' ) - Factor Documentation
Handbook
Glossary
4keep-under ( quot -- quot' )
Extra combinators
Prev:
3keep-under ( quot -- quot' )
Next:
dip-1up ( ..a d quot: ( ..a -- ..b o ) -- ..b d o )
Vocabulary
combinators
.
extras
Inputs
quot
a
quotation
Outputs
None
Word description
Calls a quotation with four values on the stack, restoring the values below the outputs when the quotation returns.
Definition
USING:
combinators.smart
kernel
math
shuffle
;
IN:
combinators.extras
MACRO:
4keep-under
( quot -- quot' )
dup
outputs
4
+
[
[
4keep
4
]
curry
]
dip
[
0
-nrotated
]
curry
compose
;
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル