Documentation
¶
Overview ¶
Package array gives all array related functions like search, copy, clone, remove, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinarySearch ¶
Search for the element in the arraylist and gives the first index of the element otherwise -1 .
This is only aplicable if the array is sorted
func LinearSearch ¶
func LinearSearch[T comparable](elements []T, element T) int
Search for the element in the arraylist and gives the first index of the element otherwise -1
func LinearSearchX ¶
func LinearSearchX[T comparable](elements []T, element T) int
This is a exprimental searching algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.