Template Functions - Slices
This page contains information about the template functions related to slices:
After( value: []any, index: uint ): []any
→ Returns all of the items in an slice after the specified index;Before( value: []any, index: uint ): []any
→ Return all of the items in the collection before the specified index;First( value: []any ): any
→ Returns the first item;Exists( value: []any, element any ): bool
→ Returns if an slice has the given element;Get( value: []any, index: uint ): any
→ Returns the item from slice at index index;Length( value: []any ): uint
→ Returns the size of the slice;Last( value: []any ): any
→ Returns the last item;Reverse( value: []any ): []any
→ Reverse the elements in an slice;SortBy( value: []any, sortFunc func(any, any) int ): []any
→ Sort the given slice, using the given function;Unique( value: []any ): []any
→ Returns an slice without any duplicates.