clojush.instructions.common
dup-itemser
(dup-itemser type)
For integer argument n, duplicate the top n items on the stack one time each. If n <= 0, no items will be duplicated. If fewer than n items are on the stack, the entire stack will be duplicated. The maximum number of items to duplicate will be limited by global-max-points. ex: (3 1.0 2.0 3.0 4.0 5.0 float_dup_items) -> (5.0 4.0 3.0 5.0 4.0 3.0 2.0 1.0) on the float stack
dup-timeser
(dup-timeser type)
For integer argument n, duplicate n copies of the top item on the stack, leaving n copies there. For n=2, this is equivalent to dup. For n=0, equivalent to pop. Negative n values are treated as 0. The maximum items added to the stack will be limited by global-max-points.
duper
(duper type)
Returns a function that takes a state and duplicates the top item of the appropriate stack of the state.
emptyer
(emptyer type)
Returns a function that takes a state and tells whether that stack is empty.
eqer
(eqer type)
Returns a function that compares the top two items of the appropriate stack of the given state.
popper
(popper type)
Returns a function that takes a state and pops the appropriate stack of the state.
rotter
(rotter type)
Returns a function that takes a state and rotates the top 3 items of the appropriate stack of the state.
shover
(shover type)
Returns a function that shoves an item deep in the specified stack, using the top integer to indicate how deep.
stackdepther
(stackdepther type)
Returns a function that pushes the depth of the appropriate stack of the given state.
swapper
(swapper type)
Returns a function that takes a state and swaps the top 2 items of the appropriate stack of the state.
yankduper
(yankduper type)
Returns a function that yanks a copy of an item from deep in the specified stack, using the top integer to indicate how deep.
yanker
(yanker type)
Returns a function that yanks an item from deep in the specified stack, using the top integer to indicate how deep.