LinkedList.makeRange

Creates a range that points to all entries of the list.

Arguments

None

Return values

range
pointing to all elements (see Range).

Complexity

Constant

Example

"sl/linkedList" useFile a: (1 2 0 5 45 3 54 98) makeList; r: a.makeRange; 444 a.pushFront r [it:; it.get 2 mod 0 = [it a.eraseIter] when TRUE] enumIter a [it:; it.get print "," print TRUE] enumIter
Output:
444,1,5,45,3,