User Tools

Site Tools


crpl:docs:prependtolist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:prependtolist [2013/07/29 14:32] – [PrependToList] thepenguincrpl:docs:prependtolist [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#lists|Lists]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#lists|Lists]]
 =====  PrependToList  ===== =====  PrependToList  =====
Line 6: Line 6:
 | List, Value |None| ''L1 n1 -- '' | | List, Value |None| ''L1 n1 -- '' |
  
-Inserts n1 at the beginning of L1 (and then shifts everything else up? (can someone check this? 8-)))+Inserts n1 at the beginning of L1 (at index 0) and shifts the index of all other elements in the list up by 1
  
 === Description === === Description ===
 <code> <code>
-#prepends the value "hello" to the end of list01 +#prepends the value "hello" to the beginning of list01 
-<-list01 "hello" AppendToList+<-list01 "hello" PrependToList
 </code> </code>
 +Sample ''list01'':\\
 +0 - foo\\
 +1 - bar
 +
 +Sample ''list01'' after PrependToList command:\\
 +0 - hello\\
 +1 - foo\\
 +2 - bar
 +
crpl/docs/prependtolist.1375108343.txt.gz · Last modified: 2025/02/14 14:56 (external edit)