Category talk:Wren-llist: Difference between revisions
Content added Content deleted
(→Source code: Added a 'nodes' iterator and changed a method name (swap -> exchange).) |
(→Source code: Added copy() methods.) |
||
Line 74: | Line 74: | ||
return ll |
return ll |
||
} |
} |
||
// Copies the current instance to a new LinkedList. |
|||
copy() { LinkedList.new(this) } |
|||
// Basic properties. |
// Basic properties. |
||
Line 510: | Line 513: | ||
return ll |
return ll |
||
} |
} |
||
// Copies the current instance to a new DLinkedList. |
|||
copy() { DLinkedList.new(this) } |
|||
// Basic properties. |
// Basic properties. |