|
@@ -33,6 +33,17 @@ Public
|
|
End If
|
|
End If
|
|
End Method
|
|
End Method
|
|
|
|
|
|
|
|
+ Rem
|
|
|
|
+ bbdoc: Creates a new #TLinkedList initialised by @array.
|
|
|
|
+ End Rem
|
|
|
|
+ Method New(array:T[])
|
|
|
|
+ If array Then
|
|
|
|
+ For Local element:T = EachIn array
|
|
|
|
+ AddLast(element)
|
|
|
|
+ Next
|
|
|
|
+ End If
|
|
|
|
+ End Method
|
|
|
|
+
|
|
Rem
|
|
Rem
|
|
bbdoc: Returns an iterator that iterates through the #TLinkedList.
|
|
bbdoc: Returns an iterator that iterates through the #TLinkedList.
|
|
End Rem
|
|
End Rem
|
|
@@ -273,7 +284,7 @@ Public
|
|
bbdoc: Removes the first occurrence of @value from the #TLinkedList.
|
|
bbdoc: Removes the first occurrence of @value from the #TLinkedList.
|
|
End Rem
|
|
End Rem
|
|
Method Remove:Int(value:T)
|
|
Method Remove:Int(value:T)
|
|
- Local node:TLinkedListNode<T>
|
|
|
|
|
|
+ Local node:TLinkedListNode<T> = Find(value)
|
|
If node Then
|
|
If node Then
|
|
RemoveNode(node)
|
|
RemoveNode(node)
|
|
Return True
|
|
Return True
|