Go to the first, previous, next, last section, table of contents.


]shift

Function: ]shift { [a ...] -> a }
file: job.t
package: muf
status: alpha

Same as 0 ]popNth:

Stack: 
[ 'a' 'b' 'c' 'd' |
Stack: [ 'a' 'b' 'c' 'd' |
]shift
Stack: 'a' 

Similar functions ]shift2 ]shift3 ]shift4 ]shift5 ]shift6 ]shift7 ]shift8 ]shift9 return the indicated number of scalars from the block.

(Note that a general ]shiftN operator would defeat the static arity analysis on which the MUF compiler depends.)


Go to the first, previous, next, last section, table of contents.