An open API service indexing awesome lists of open source software.

https://github.com/dlepex/genericlib

Companion repository for typeinst. It contains common generic methods on slices, maps, sets.
https://github.com/dlepex/genericlib

generic-library generics go golang sets slices typeinst

Last synced: 5 months ago
JSON representation

Companion repository for typeinst. It contains common generic methods on slices, maps, sets.

Awesome Lists containing this project

README

          

# genericlib

See https://github.com/dlepex/typeinst

## Overview

genericlib provides the following generic packages:

1. **slice**
- basic operations: IndexOf, Contains, Delete, DeleteAt, Copy, Pop, Reverse
- predicative operations: Filter, FilterMut, FilterTo, FindIndex, Exists, All
- map, reduce
- iterating slice by chunks
2. **conv**: *conversions between data sructures*
- map keys/values to slice
- slice to map, to set
- set to slice
3. **set**: *handy wrapper type for* ```map[E]struct{}```