Permutations: Difference between revisions
Content added Content deleted
(Added a third Pascal solution (permutations from integers)) |
m (→An Uncommon Ordering: typo) |
||
Line 7,742: | 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>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 |
<code>999 ' [ 10 11 12 13 ] 3 stuff</code> will return <code>[ 10 11 12 999 13 ]</code>by stuffing the number 999 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. |
<code>nested join</code> adds a nest to the end of a nest as its last item. |