Documentation
¶
Overview ¶
Package search provides the "binary search" function for slices of basic types.
Index ¶
- func Bool(list []bool, element bool) (int, bool)
- func BoolDesc(list []bool, element bool) (int, bool)
- func BoolIdx(list []bool, indices []int, element bool) (int, bool)
- func BoolIdxDesc(list []bool, indices []int, element bool) (int, bool)
- func BoolIdxRng(list []bool, indices []int, element bool) (int, int, bool)
- func BoolIdxRngDesc(list []bool, indices []int, element bool) (int, int, bool)
- func BoolRng(list []bool, element bool) (int, int, bool)
- func BoolRngDesc(list []bool, element bool) (int, int, bool)
- func Byte(list []byte, element byte) (int, bool)
- func ByteDesc(list []byte, element byte) (int, bool)
- func ByteIdx(list []byte, indices []int, element byte) (int, bool)
- func ByteIdxDesc(list []byte, indices []int, element byte) (int, bool)
- func ByteIdxRng(list []byte, indices []int, element byte) (int, int, bool)
- func ByteIdxRngDesc(list []byte, indices []int, element byte) (int, int, bool)
- func ByteRng(list []byte, element byte) (int, int, bool)
- func ByteRngDesc(list []byte, element byte) (int, int, bool)
- func Complex128(list []complex128, element complex128) (int, bool)
- func Complex128Desc(list []complex128, element complex128) (int, bool)
- func Complex128Idx(list []complex128, indices []int, element complex128) (int, bool)
- func Complex128IdxDesc(list []complex128, indices []int, element complex128) (int, bool)
- func Complex128IdxRng(list []complex128, indices []int, element complex128) (int, int, bool)
- func Complex128IdxRngDesc(list []complex128, indices []int, element complex128) (int, int, bool)
- func Complex128Rng(list []complex128, element complex128) (int, int, bool)
- func Complex128RngDesc(list []complex128, element complex128) (int, int, bool)
- func Complex64(list []complex64, element complex64) (int, bool)
- func Complex64Desc(list []complex64, element complex64) (int, bool)
- func Complex64Idx(list []complex64, indices []int, element complex64) (int, bool)
- func Complex64IdxDesc(list []complex64, indices []int, element complex64) (int, bool)
- func Complex64IdxRng(list []complex64, indices []int, element complex64) (int, int, bool)
- func Complex64IdxRngDesc(list []complex64, indices []int, element complex64) (int, int, bool)
- func Complex64Rng(list []complex64, element complex64) (int, int, bool)
- func Complex64RngDesc(list []complex64, element complex64) (int, int, bool)
- func Float32(list []float32, element float32) (int, bool)
- func Float32Desc(list []float32, element float32) (int, bool)
- func Float32Idx(list []float32, indices []int, element float32) (int, bool)
- func Float32IdxDesc(list []float32, indices []int, element float32) (int, bool)
- func Float32IdxRng(list []float32, indices []int, element float32) (int, int, bool)
- func Float32IdxRngDesc(list []float32, indices []int, element float32) (int, int, bool)
- func Float32Rng(list []float32, element float32) (int, int, bool)
- func Float32RngDesc(list []float32, element float32) (int, int, bool)
- func Float64(list []float64, element float64) (int, bool)
- func Float64Desc(list []float64, element float64) (int, bool)
- func Float64Idx(list []float64, indices []int, element float64) (int, bool)
- func Float64IdxDesc(list []float64, indices []int, element float64) (int, bool)
- func Float64IdxRng(list []float64, indices []int, element float64) (int, int, bool)
- func Float64IdxRngDesc(list []float64, indices []int, element float64) (int, int, bool)
- func Float64Rng(list []float64, element float64) (int, int, bool)
- func Float64RngDesc(list []float64, element float64) (int, int, bool)
- func Int(list []int, element int) (int, bool)
- func Int16(list []int16, element int16) (int, bool)
- func Int16Desc(list []int16, element int16) (int, bool)
- func Int16Idx(list []int16, indices []int, element int16) (int, bool)
- func Int16IdxDesc(list []int16, indices []int, element int16) (int, bool)
- func Int16IdxRng(list []int16, indices []int, element int16) (int, int, bool)
- func Int16IdxRngDesc(list []int16, indices []int, element int16) (int, int, bool)
- func Int16Rng(list []int16, element int16) (int, int, bool)
- func Int16RngDesc(list []int16, element int16) (int, int, bool)
- func Int32(list []int32, element int32) (int, bool)
- func Int32Desc(list []int32, element int32) (int, bool)
- func Int32Idx(list []int32, indices []int, element int32) (int, bool)
- func Int32IdxDesc(list []int32, indices []int, element int32) (int, bool)
- func Int32IdxRng(list []int32, indices []int, element int32) (int, int, bool)
- func Int32IdxRngDesc(list []int32, indices []int, element int32) (int, int, bool)
- func Int32Rng(list []int32, element int32) (int, int, bool)
- func Int32RngDesc(list []int32, element int32) (int, int, bool)
- func Int64(list []int64, element int64) (int, bool)
- func Int64Desc(list []int64, element int64) (int, bool)
- func Int64Idx(list []int64, indices []int, element int64) (int, bool)
- func Int64IdxDesc(list []int64, indices []int, element int64) (int, bool)
- func Int64IdxRng(list []int64, indices []int, element int64) (int, int, bool)
- func Int64IdxRngDesc(list []int64, indices []int, element int64) (int, int, bool)
- func Int64Rng(list []int64, element int64) (int, int, bool)
- func Int64RngDesc(list []int64, element int64) (int, int, bool)
- func Int8(list []int8, element int8) (int, bool)
- func Int8Desc(list []int8, element int8) (int, bool)
- func Int8Idx(list []int8, indices []int, element int8) (int, bool)
- func Int8IdxDesc(list []int8, indices []int, element int8) (int, bool)
- func Int8IdxRng(list []int8, indices []int, element int8) (int, int, bool)
- func Int8IdxRngDesc(list []int8, indices []int, element int8) (int, int, bool)
- func Int8Rng(list []int8, element int8) (int, int, bool)
- func Int8RngDesc(list []int8, element int8) (int, int, bool)
- func IntDesc(list []int, element int) (int, bool)
- func IntIdx(list []int, indices []int, element int) (int, bool)
- func IntIdxDesc(list []int, indices []int, element int) (int, bool)
- func IntIdxRng(list []int, indices []int, element int) (int, int, bool)
- func IntIdxRngDesc(list []int, indices []int, element int) (int, int, bool)
- func IntRng(list []int, element int) (int, int, bool)
- func IntRngDesc(list []int, element int) (int, int, bool)
- func Pointer(list []unsafe.Pointer, element unsafe.Pointer) (int, bool)
- func PointerDesc(list []unsafe.Pointer, element unsafe.Pointer) (int, bool)
- func PointerIdx(list []unsafe.Pointer, indices []int, element unsafe.Pointer) (int, bool)
- func PointerIdxDesc(list []unsafe.Pointer, indices []int, element unsafe.Pointer) (int, bool)
- func PointerIdxRng(list []unsafe.Pointer, indices []int, element unsafe.Pointer) (int, int, bool)
- func PointerIdxRngDesc(list []unsafe.Pointer, indices []int, element unsafe.Pointer) (int, int, bool)
- func PointerRng(list []unsafe.Pointer, element unsafe.Pointer) (int, int, bool)
- func PointerRngDesc(list []unsafe.Pointer, element unsafe.Pointer) (int, int, bool)
- func Rune(list []rune, element rune) (int, bool)
- func RuneDesc(list []rune, element rune) (int, bool)
- func RuneIdx(list []rune, indices []int, element rune) (int, bool)
- func RuneIdxDesc(list []rune, indices []int, element rune) (int, bool)
- func RuneIdxRng(list []rune, indices []int, element rune) (int, int, bool)
- func RuneIdxRngDesc(list []rune, indices []int, element rune) (int, int, bool)
- func RuneRng(list []rune, element rune) (int, int, bool)
- func RuneRngDesc(list []rune, element rune) (int, int, bool)
- func String(list []string, element string) (int, bool)
- func StringDesc(list []string, element string) (int, bool)
- func StringIdx(list []string, indices []int, element string) (int, bool)
- func StringIdxDesc(list []string, indices []int, element string) (int, bool)
- func StringIdxOff(list []string, indices []int, element string, offset int) (int, int, bool)
- func StringIdxOffDesc(list []string, indices []int, element string, offset int) (int, int, bool)
- func StringIdxRng(list []string, indices []int, element string) (int, int, bool)
- func StringIdxRngDesc(list []string, indices []int, element string) (int, int, bool)
- func StringOff(list []string, element string, offset int) (int, int, bool)
- func StringOffDesc(list []string, element string, offset int) (int, int, bool)
- func StringRng(list []string, element string) (int, int, bool)
- func StringRngDesc(list []string, element string) (int, int, bool)
- func UInt(list []uint, element uint) (int, bool)
- func UInt16(list []uint16, element uint16) (int, bool)
- func UInt16Desc(list []uint16, element uint16) (int, bool)
- func UInt16Idx(list []uint16, indices []int, element uint16) (int, bool)
- func UInt16IdxDesc(list []uint16, indices []int, element uint16) (int, bool)
- func UInt16IdxRng(list []uint16, indices []int, element uint16) (int, int, bool)
- func UInt16IdxRngDesc(list []uint16, indices []int, element uint16) (int, int, bool)
- func UInt16Rng(list []uint16, element uint16) (int, int, bool)
- func UInt16RngDesc(list []uint16, element uint16) (int, int, bool)
- func UInt32(list []uint32, element uint32) (int, bool)
- func UInt32Desc(list []uint32, element uint32) (int, bool)
- func UInt32Idx(list []uint32, indices []int, element uint32) (int, bool)
- func UInt32IdxDesc(list []uint32, indices []int, element uint32) (int, bool)
- func UInt32IdxRng(list []uint32, indices []int, element uint32) (int, int, bool)
- func UInt32IdxRngDesc(list []uint32, indices []int, element uint32) (int, int, bool)
- func UInt32Rng(list []uint32, element uint32) (int, int, bool)
- func UInt32RngDesc(list []uint32, element uint32) (int, int, bool)
- func UInt64(list []uint64, element uint64) (int, bool)
- func UInt64Desc(list []uint64, element uint64) (int, bool)
- func UInt64Idx(list []uint64, indices []int, element uint64) (int, bool)
- func UInt64IdxDesc(list []uint64, indices []int, element uint64) (int, bool)
- func UInt64IdxRng(list []uint64, indices []int, element uint64) (int, int, bool)
- func UInt64IdxRngDesc(list []uint64, indices []int, element uint64) (int, int, bool)
- func UInt64Rng(list []uint64, element uint64) (int, int, bool)
- func UInt64RngDesc(list []uint64, element uint64) (int, int, bool)
- func UInt8(list []uint8, element uint8) (int, bool)
- func UInt8Desc(list []uint8, element uint8) (int, bool)
- func UInt8Idx(list []uint8, indices []int, element uint8) (int, bool)
- func UInt8IdxDesc(list []uint8, indices []int, element uint8) (int, bool)
- func UInt8IdxRng(list []uint8, indices []int, element uint8) (int, int, bool)
- func UInt8IdxRngDesc(list []uint8, indices []int, element uint8) (int, int, bool)
- func UInt8Rng(list []uint8, element uint8) (int, int, bool)
- func UInt8RngDesc(list []uint8, element uint8) (int, int, bool)
- func UIntDesc(list []uint, element uint) (int, bool)
- func UIntIdx(list []uint, indices []int, element uint) (int, bool)
- func UIntIdxDesc(list []uint, indices []int, element uint) (int, bool)
- func UIntIdxRng(list []uint, indices []int, element uint) (int, int, bool)
- func UIntIdxRngDesc(list []uint, indices []int, element uint) (int, int, bool)
- func UIntPtr(list []uintptr, element uintptr) (int, bool)
- func UIntPtrDesc(list []uintptr, element uintptr) (int, bool)
- func UIntPtrIdx(list []uintptr, indices []int, element uintptr) (int, bool)
- func UIntPtrIdxDesc(list []uintptr, indices []int, element uintptr) (int, bool)
- func UIntPtrIdxRng(list []uintptr, indices []int, element uintptr) (int, int, bool)
- func UIntPtrIdxRngDesc(list []uintptr, indices []int, element uintptr) (int, int, bool)
- func UIntPtrRng(list []uintptr, element uintptr) (int, int, bool)
- func UIntPtrRngDesc(list []uintptr, element uintptr) (int, int, bool)
- func UIntRng(list []uint, element uint) (int, int, bool)
- func UIntRngDesc(list []uint, element uint) (int, int, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and sorted from false to true.
func BoolDesc ¶
BoolDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and sorted from true to false.
func BoolIdx ¶
BoolIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and sorted from false to true by indices.
func BoolIdxDesc ¶
BoolIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and sorted from true to false by indices.
func BoolIdxRng ¶
BoolIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be sorted from false to true by indices.
func BoolIdxRngDesc ¶
BoolIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be sorted from true to false by indices.
func BoolRng ¶
BoolRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be sorted from false to true.
func BoolRngDesc ¶
BoolRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be sorted from true to false.
func Byte ¶
Byte searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func ByteDesc ¶
ByteDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func ByteIdx ¶
ByteIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func ByteIdxDesc ¶
ByteIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func ByteIdxRng ¶
ByteIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func ByteIdxRngDesc ¶
ByteIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func ByteRng ¶
ByteRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func ByteRngDesc ¶
ByteRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Complex128 ¶
func Complex128(list []complex128, element complex128) (int, bool)
Complex128 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Complex128Desc ¶
func Complex128Desc(list []complex128, element complex128) (int, bool)
Complex128Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Complex128Idx ¶
func Complex128Idx(list []complex128, indices []int, element complex128) (int, bool)
Complex128Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Complex128IdxDesc ¶
func Complex128IdxDesc(list []complex128, indices []int, element complex128) (int, bool)
Complex128IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Complex128IdxRng ¶
func Complex128IdxRng(list []complex128, indices []int, element complex128) (int, int, bool)
Complex128IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Complex128IdxRngDesc ¶
func Complex128IdxRngDesc(list []complex128, indices []int, element complex128) (int, int, bool)
Complex128IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Complex128Rng ¶
func Complex128Rng(list []complex128, element complex128) (int, int, bool)
Complex128Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Complex128RngDesc ¶
func Complex128RngDesc(list []complex128, element complex128) (int, int, bool)
Complex128RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Complex64 ¶
Complex64 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Complex64Desc ¶
Complex64Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Complex64Idx ¶
Complex64Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Complex64IdxDesc ¶
Complex64IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Complex64IdxRng ¶
Complex64IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Complex64IdxRngDesc ¶
Complex64IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Complex64Rng ¶
Complex64Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Complex64RngDesc ¶
Complex64RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Float32 ¶
Float32 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Float32Desc ¶
Float32Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Float32Idx ¶
Float32Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Float32IdxDesc ¶
Float32IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Float32IdxRng ¶
Float32IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Float32IdxRngDesc ¶
Float32IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Float32Rng ¶
Float32Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Float32RngDesc ¶
Float32RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Float64 ¶
Float64 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Float64Desc ¶
Float64Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Float64Idx ¶
Float64Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Float64IdxDesc ¶
Float64IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Float64IdxRng ¶
Float64IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Float64IdxRngDesc ¶
Float64IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Float64Rng ¶
Float64Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Float64RngDesc ¶
Float64RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Int ¶
Int searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Int16 ¶
Int16 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Int16Desc ¶
Int16Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Int16Idx ¶
Int16Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Int16IdxDesc ¶
Int16IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Int16IdxRng ¶
Int16IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Int16IdxRngDesc ¶
Int16IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Int16Rng ¶
Int16Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Int16RngDesc ¶
Int16RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Int32 ¶
Int32 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Int32Desc ¶
Int32Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Int32Idx ¶
Int32Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Int32IdxDesc ¶
Int32IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Int32IdxRng ¶
Int32IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Int32IdxRngDesc ¶
Int32IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Int32Rng ¶
Int32Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Int32RngDesc ¶
Int32RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Int64 ¶
Int64 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Int64Desc ¶
Int64Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Int64Idx ¶
Int64Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Int64IdxDesc ¶
Int64IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Int64IdxRng ¶
Int64IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Int64IdxRngDesc ¶
Int64IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Int64Rng ¶
Int64Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Int64RngDesc ¶
Int64RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Int8 ¶
Int8 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func Int8Desc ¶
Int8Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func Int8Idx ¶
Int8Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func Int8IdxDesc ¶
Int8IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func Int8IdxRng ¶
Int8IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func Int8IdxRngDesc ¶
Int8IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func Int8Rng ¶
Int8Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func Int8RngDesc ¶
Int8RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func IntDesc ¶
IntDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func IntIdx ¶
IntIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func IntIdxDesc ¶
IntIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func IntIdxRng ¶
IntIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func IntIdxRngDesc ¶
IntIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func IntRng ¶
IntRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func IntRngDesc ¶
IntRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Pointer ¶
Pointer searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func PointerDesc ¶
PointerDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func PointerIdx ¶
PointerIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func PointerIdxDesc ¶
PointerIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func PointerIdxRng ¶
PointerIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func PointerIdxRngDesc ¶
func PointerIdxRngDesc(list []unsafe.Pointer, indices []int, element unsafe.Pointer) (int, int, bool)
PointerIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func PointerRng ¶
PointerRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func PointerRngDesc ¶
PointerRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func Rune ¶
Rune searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func RuneDesc ¶
RuneDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func RuneIdx ¶
RuneIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func RuneIdxDesc ¶
RuneIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func RuneIdxRng ¶
RuneIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func RuneIdxRngDesc ¶
RuneIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func RuneRng ¶
RuneRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func RuneRngDesc ¶
RuneRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func String ¶
String searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func StringDesc ¶
StringDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func StringIdx ¶
StringIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func StringIdxDesc ¶
StringIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func StringIdxOff ¶
StringIdxOff searches elements in list starting at offset matching element, i.e. list[indices[i]][offset:offset+len(element)] == element. Returns start and end index in indices, i.e. start <= i < end. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices regarding offset.
func StringIdxOffDesc ¶
StringIdxOffDesc searches elements in list starting at offset matching element, i.e. list[indices[i]][offset:offset+len(element)] == element. Returns start and end index in indices, i.e. start <= i < end. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices regarding offset.
func StringIdxRng ¶
StringIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func StringIdxRngDesc ¶
StringIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func StringOff ¶
StringOff searches elements in list starting at offset matching element, i.e. list[i][offset:offset+len(element)] == element. Returns start and end index, i.e. start <= i < end. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order regarding offset.
func StringOffDesc ¶
StringOff searches elements in list starting at offset matching element, i.e. list[i][offset:offset+len(element)] == element. Returns start and end index, i.e. start <= i < end. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order regarding offset.
func StringRng ¶
StringRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func StringRngDesc ¶
StringRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func UInt ¶
UInt searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func UInt16 ¶
UInt16 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func UInt16Desc ¶
UInt16Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func UInt16Idx ¶
UInt16Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func UInt16IdxDesc ¶
UInt16IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func UInt16IdxRng ¶
UInt16IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func UInt16IdxRngDesc ¶
UInt16IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func UInt16Rng ¶
UInt16Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func UInt16RngDesc ¶
UInt16RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func UInt32 ¶
UInt32 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func UInt32Desc ¶
UInt32Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func UInt32Idx ¶
UInt32Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func UInt32IdxDesc ¶
UInt32IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func UInt32IdxRng ¶
UInt32IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func UInt32IdxRngDesc ¶
UInt32IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func UInt32Rng ¶
UInt32Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func UInt32RngDesc ¶
UInt32RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func UInt64 ¶
UInt64 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func UInt64Desc ¶
UInt64Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func UInt64Idx ¶
UInt64Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func UInt64IdxDesc ¶
UInt64IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func UInt64IdxRng ¶
UInt64IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func UInt64IdxRngDesc ¶
UInt64IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func UInt64Rng ¶
UInt64Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func UInt64RngDesc ¶
UInt64RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func UInt8 ¶
UInt8 searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func UInt8Desc ¶
UInt8Desc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func UInt8Idx ¶
UInt8Idx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func UInt8IdxDesc ¶
UInt8IdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func UInt8IdxRng ¶
UInt8IdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func UInt8IdxRngDesc ¶
UInt8IdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func UInt8Rng ¶
UInt8Rng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func UInt8RngDesc ¶
UInt8RngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func UIntDesc ¶
UIntDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func UIntIdx ¶
UIntIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func UIntIdxDesc ¶
UIntIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func UIntIdxRng ¶
UIntIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func UIntIdxRngDesc ¶
UIntIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func UIntPtr ¶
UIntPtr searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in ascending order.
func UIntPtrDesc ¶
UIntPtrDesc searches an element in list and returns its index. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be unique and in descending order.
func UIntPtrIdx ¶
UIntPtrIdx searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in ascending order by indices.
func UIntPtrIdxDesc ¶
UIntPtrIdxDesc searches an element in list and returns its index in indices. Second return value is true, if element is in list, otherwise false and the index returned is the insert index. Indices must reference elements in list, elements must be unique and in descending order by indices.
func UIntPtrIdxRng ¶
UIntPtrIdxRng searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order by indices.
func UIntPtrIdxRngDesc ¶
UIntPtrIdxRngDesc searches an element in list and returns its start and end index in indices. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order by indices.
func UIntPtrRng ¶
UIntPtrRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func UIntPtrRngDesc ¶
UIntPtrRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
func UIntRng ¶
UIntRng searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in ascending order.
func UIntRngDesc ¶
UIntRngDesc searches an element in list and returns its start and end index. Start index is inclusive, end index is exclusive. Third return value is true, if element is in list, otherwise false and the index returned is the insert index. Elements in list must be in descending order.
Types ¶
This section is empty.