You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"project.versionLegalCopyright": "This is free and unencumbered software released into the public domain. For more information, please refer to <https://unlicense.org>",
Copy file name to clipboardExpand all lines: ArrayListLib/Sources/IArrayList.twin
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Public Interface IList Extends ICollection
35
35
Property Get IsReadOnly() As Boolean
36
36
Property Get IsFixedSize() As Boolean
37
37
[ Description ("Returns the index of a particular item. Returns -1 if the item isn't in the list.") ]
38
-
Function IndexOf(Value As Variant, Optional ByVal Index As Long = 0, Optional ByVal GetCount As Variant) As Long
38
+
Function IndexOf(Value As Variant, Optional ByVal Index As Variant, Optional ByVal GetCount As Variant) As Long
39
39
[ Description ("Inserts value into the list at position Index. Index must be non-negative and less than or equal to the number of elements in the list. If Index equals the number of items in the list, then value is appended to the end.") ]
40
40
Sub Insert(ByVal Index As Long, Value As Variant)
41
41
[ Description ("Removes an item from the list.") ]
@@ -54,7 +54,7 @@ Public Interface IListRange Extends IList
54
54
Sub SetRange(ByVal Index As Long, Target As Variant)
55
55
Function ToArray() As Variant()
56
56
[ Description ("Sorts the elements in a section of this list. The sort compares the elements to each other using the given IComparer interface.") ]
57
-
Sub Sort(Optional ByVal Index As Long = 0, Optional ByVal GetCount As Variant, Optional ByRef Comparer As IComparer = Nothing)
57
+
Sub Sort(Optional ByVal Index As Variant, Optional ByVal GetCount As Variant, Optional ByRef Comparer As IComparer = Nothing)
58
58
Function BinarySearch(ByVal Index As Long, ByVal GetCount As Long, ByRef Value As Variant, Optional ByRef Comparer As IComparer = Nothing) As Long
59
59
[ Hidden ]
60
60
Function GetAddressOfItemAt(Index As Long) As LongPtr
@@ -65,6 +65,8 @@ Public Interface IArrayList Extends IListRange
65
65
Implements ICloneable
66
66
67
67
Function Clone() As Variant Implements ICloneable.Clone
68
+
Property Get BaseIndex() As Long
69
+
Property Let BaseIndex(Value As Long)
68
70
[ Hidden ]
69
71
Property Get Version() As Long
70
72
Property Get Capacity() As Long
@@ -75,5 +77,5 @@ Public Interface IArrayList Extends IListRange
75
77
[ Hidden ]
76
78
Sub CloneTo(ByVal Target As IArrayList, ByRef Source As IArrayList, ByVal Index As Long, ByVal GetCount As Long)
77
79
Function LastIndexOf(ByRef Value As Variant, Optional ByVal Index As Variant, Optional ByVal GetCount As Variant) As Long
78
-
Sub Reverse(Optional ByVal Index As Long = 0, Optional ByVal GetCount As Variant)
80
+
Sub Reverse(Optional ByVal Index As Variant, Optional ByVal GetCount As Variant)
0 commit comments