Add a few words to newfx
parent
ce0f86167e
commit
042b5ece23
|
@ -1,7 +1,8 @@
|
||||||
|
|
||||||
USING: kernel sequences assocs qualified ;
|
USING: kernel sequences assocs qualified circular ;
|
||||||
|
|
||||||
QUALIFIED: sequences
|
QUALIFIED: sequences
|
||||||
|
QUALIFIED: circular
|
||||||
|
|
||||||
IN: newfx
|
IN: newfx
|
||||||
|
|
||||||
|
@ -53,8 +54,10 @@ IN: newfx
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
: push ( seq obj -- seq ) over sequences:push ;
|
: push ( seq obj -- seq ) over sequences:push ;
|
||||||
: push-on ( obj seq -- seq ) tuck sequences:push ;
|
: push-on ( obj seq -- seq ) tuck sequences:push ;
|
||||||
|
: pushed ( seq obj -- ) swap sequences:push ;
|
||||||
|
: pushed-on ( obj seq -- ) sequences:push ;
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
@ -91,6 +94,10 @@ IN: newfx
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
: push-circular ( seq elt -- seq ) over circular:push-circular ;
|
||||||
|
|
||||||
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
! A note about the 'mutate' qualifier. Other words also technically mutate
|
! A note about the 'mutate' qualifier. Other words also technically mutate
|
||||||
! their primary object. However, the 'mutate' qualifier is supposed to
|
! their primary object. However, the 'mutate' qualifier is supposed to
|
||||||
! indicate that this is the main objective of the word, as a side effect.
|
! indicate that this is the main objective of the word, as a side effect.
|
Loading…
Reference in New Issue