Package slices provides generic functions for slices.
The package is inspired by Enum
and List
Elixir modules.
Available functions:
- AllAsync
- AnyAsync
- EachAsync
- FilterAsync
- MapAsync
- ReduceAsync
- Choice
- ChunkEvery
- Contains
- Count
- Copy
- Cycle
- Dedup
- Delete
- DeleteAll
- DeleteAt
- DropEvery
- EndsWith
- Equal
- Grow
- Shrink
- Join
- Index
- InsertAt
- Intersperse
- Last
- Max
- Min
- Permutations
- Product
- Reverse
- Repeat
- Same
- Shuffle
- Sort
- Sorted
- Split
- StartsWith
- Sum
- TakeEvery
- TakeRandom
- ToChannel
- ToMap
- ToKeys
- Uniq
- Window
- Without
- Wrap
- Any
- All
- CountBy
- EqualBy
- ChunkBy
- DedupBy
- DropWhile
- Each
- EachErr
- Filter
- Find
- FindIndex
- GroupBy
- IndexBy
- Map
- Reduce
- ReduceWhile
- Reject
- Scan
- TakeWhile
- Concat
- Product2
- Zip