==== NDUPN ====
----
----
Replicate one object N times and return N
----
^ __Input Stack__ ^^ ^ __Output Stack__ ^^^^
| **O1** | **In** | **→** | **O1** | **...** | **O1** | **In** |
| //Level 2// | //Level 1// | //→// | //Level n+1// | //...// | //Level 2// | //Level 1// |
{{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
|**Type**| [[manual:chapter5:basics#commands|Command]] ||
|**Parallel list processing**| [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] ||
|**Affected by flags**| None ||
----
The ''NDUPN'' command creates N duplicates of the object on the second level of the stack and returns N.
----
This command is fully compatible with userRPL.
----
3: { 'X' 'Y' 'Z' }
2: 1_m
1: 4
……………………………………………………………………………………
NDUPN
will result in
6: { 'X' 'Y' 'Z' }
5: 1_m
4: 1_m
3: 1_m
2: 1_m
1: 4
……………………………………………………………………………………
----
{{page>manual:chapter6:stack&nofooter&noeditbtn&inline}}