github.com/go-mike/slices

Package slices provides a set of mostly generic functions for working with slices.


License
MIT
Install
go get github.com/go-mike/slices

Documentation

Slices

Functions

  • All
  • AllIndexed
  • Any
  • AnyIndexed
  • BinarySearch
  • BinarySearchFunc
  • BubbleSort
  • BubbleSortFunc
  • Clone
  • Compact
  • CompactFunc
  • Compare
  • CompareFunc
  • Contains
  • ContainsFunc
  • ContainsIndexedFunc
  • Count
  • CountFunc
  • CountIndexedFunc
  • Delete
  • Equals
  • EqualsFunc
  • ExtractRange
  • ExtractRangeStep
  • Filter
  • FilterIndexed
  • Flatten
  • FlattenMap
  • GroupBy
  • GroupByIndexed
  • Grow
  • Index
  • IndexFunc
  • IndexIndexedFunc
  • Indices
  • IndicesFunc
  • IndicesIndexedFunc
  • Insert
  • IsSorted
  • IsSortedFunc
  • LastIndex
  • LastIndexFunc
  • LastIndexIndexedFunc
  • Map
  • MapIndexed
  • MapRange
  • MapRangeStep
  • MergeSort
  • MergeSortFunc
  • MergeSorted
  • MergeSortedFunc
  • Partition
  • QuickSort
  • QuickSortFunc
  • Range
  • RangeStep
  • Reduce
  • ReduceIndexed
  • ReduceRight
  • ReduceRightIndexed
  • Replace
  • Reverse
  • ReverseInPlace
  • Trim
  • TrimFunc
  • TrimStart
  • TrimStartFunc
  • TrimEnd
  • TrimEndFunc
  • TrimIndexed
  • TrimIndexedFunc
  • TrimStartIndexed
  • TrimStartIndexedFunc
  • TrimEndIndexed
  • TrimEndIndexedFunc
  • TrimCapacity