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


|dupNth

Function: |dupNth do{ [] n -> [] arg }
file: job.t
package: muf
status: alpha

Given n and a block, |dupNth pushes on the stack a copy of the nth element in the block, which is left unchanged. The bottom (leftmost) element in the block is element zero:

Stack:
[ 'a' 'b' 'c' | 0 |dupNth
Stack: [ 'a' 'b' 'c' | 'a'
pop 2 |dupNth
Stack: [ 'a' 'b' 'c' | 'c'

See section |first. See section |setNth. See section |popNth. See section ]popNth.


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