Documentation
¶
Overview ¶
Package slicesx provides additional slice functions beyond those in the standard slices package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Move ¶
Move moves the element in the given slice at the given old position to the given new position and returns the resulting slice.
func Search ¶
Search returns the index of the item in the given slice that matches the target according to the given match function, using the given optional starting index to optimize the search by searching bidirectionally outward from given index. This is much faster when you have some idea about where the item might be. If no start index is given, it starts in the middle, which is a good default. It returns -1 if no item matching the match function is found.
Types ¶
This section is empty.