Iterator.insertBefore

Inserts an entry to a container before the iterator. Applicable to a LinkedList only.

Arguments

value
to insert.

Return values

None

Complexity

Constant

Example

"sl/linkedList" useFile l: (4 5 6) makeList; it: l.firstIter; "before" it.insertBefore "after" it.insertAfter l [print "," print TRUE] enum
Output:
before,4,after,5,6,