Remove shuffle word, rename shuffle* to shuffle
parent
bcc8483b5b
commit
b6c2a85931
|
@ -647,7 +647,7 @@ UNION: immediate fixnum POSTPONE: f ;
|
|||
|
||||
: phantom-shuffle ( shuffle -- )
|
||||
[ in>> length phantom-datastack get phantom-input ] keep
|
||||
shuffle* phantom-datastack get phantom-append ;
|
||||
shuffle phantom-datastack get phantom-append ;
|
||||
|
||||
: phantom->r ( n -- )
|
||||
phantom-datastack get phantom-input
|
||||
|
|
|
@ -47,7 +47,7 @@ IN: stack-checker.known-words
|
|||
|
||||
: infer-shuffle ( shuffle -- )
|
||||
[ in>> length consume-d ] keep ! inputs shuffle
|
||||
[ drop ] [ shuffle* dup copy-values dup output-d ] 2bi ! inputs outputs copies
|
||||
[ drop ] [ shuffle dup copy-values dup output-d ] 2bi ! inputs outputs copies
|
||||
[ nip ] [ swap zip ] 2bi ! inputs copies mapping
|
||||
#shuffle, ;
|
||||
|
||||
|
|
|
@ -67,6 +67,3 @@ M: effect clone
|
|||
|
||||
: shuffle* ( stack shuffle -- newstack )
|
||||
[ [ load-shuffle ] keep shuffled-values ] with-scope ;
|
||||
|
||||
: shuffle ( stack shuffle -- newstack )
|
||||
[ split-shuffle ] keep shuffle* append ;
|
||||
|
|
Loading…
Reference in New Issue