Documentation
¶
Overview ¶
Package eytzinger implements Eytzinger Binary Search for any ordered type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Search ¶
func Search[T constraints.Ordered](a []T, x T) int
Search does a binary search of an array sorted in Eytzinger order.
func Sort ¶
func Sort[T constraints.Ordered](a []T)
Sort sorts the given array into Eytzinger order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.