Permutations: Difference between revisions

m
(Added a third Pascal solution (permutations from integers))
Line 7,742:
<code>witheach</code> indicates that the word or nest following it is to be repeated once for each item in a specified nest, with successive items from the nest available on the top of stack on each repetition.
 
<code>999 ' [ 10 11 12 13 ] 3 stuff</code> will return <code>[ 10 11 12 99999 13 ]</code>by stuffing the number 99999 into the 3rd position in the nest. (The start of a nest is the zeroth position, the end of this nest is the 5th position.)
 
<code>nested join</code> adds a nest to the end of a nest as its last item.
1,462

edits