This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:prependtolist [2013/07/29 14:32] – [PrependToList] thepenguin | crpl:docs:prependtolist [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== PrependToList | ===== PrependToList | ||
Line 6: | Line 6: | ||
| List, Value |None| '' | | List, Value |None| '' | ||
- | Inserts n1 at the beginning of L1 (and then shifts | + | Inserts n1 at the beginning of L1 (at index 0) and shifts |
=== Description === | === Description === | ||
< | < | ||
- | #prepends the value " | + | #prepends the value " |
- | <-list01 " | + | <-list01 " |
</ | </ | ||
+ | Sample '' | ||
+ | 0 - foo\\ | ||
+ | 1 - bar | ||
+ | |||
+ | Sample '' | ||
+ | 0 - hello\\ | ||
+ | 1 - foo\\ | ||
+ | 2 - bar | ||
+ |