@@ -643,6 +643,36 @@ Struct @Array<T>
643643 #end
644644 Method ToString:String()="toString"
645645
646+ #rem wonkeydoc Finds the index of the first matching value in the array.
647+ In debug builds, a runtime error will occur if `start` is less than 0 or greater than the length of the stack.
648+ @param value The value to find.
649+ @param start The starting index for the search.
650+ @return The index of the value in the stack, or -1 if the value was not found.
651+ #end
652+ Method Find:Int( value:T, start:Int = 0 )="find"
653+
654+ #rem wonkeydoc Finds the index of the last matching value in the array.
655+ In debug builds, a runtime error will occur if `start` is less than 0 or greater than the length of the stack.
656+ @param value The value to find.
657+ @param start The starting index for the search.
658+ @return The index of the value in the stack, or -1 if the value was not found.
659+ #end
660+ Method FindLast:Int( value:T, start:Int = 0 )="findlast"
661+
662+ #rem wonkeydoc Checks if the array contains a value.
663+ @param value The value to check for.
664+ @return True if the array contains the value, else false.
665+ #end
666+ Method Contains:Bool( value:T )="contains"
667+
668+ #rem wonkeydoc Creates a new Array, consisting of numbers between a starting point
669+ and ending point, spaced apart by a given interval.
670+ @param newLength Length of new Array.
671+ @param start The starting point.
672+ @param _step Interval.
673+ #end
674+ Method Iota:T[]( newLength:Int, start:Int = 0, _step:Int = 1 )="iota"
675+
646676End
647677
648678#rem wonkeydoc Base class of all objects.
0 commit comments