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

https://github.com/gwleuverink/collections

Collections implementation with generators
https://github.com/gwleuverink/collections

hacktoberfest

Last synced: 3 months ago
JSON representation

Collections implementation with generators

Awesome Lists containing this project

README

        

# Collections
Collections implementation with generators. This thing is just for practice

## How to use
Read the tests

## Scripts
`composer fix`: Run php-cs-fixer

`composer test`: Run test suite

`composer coverage`: Generate coverage report

`composer analyze`: Generate static analysis report

## Roadmap

### Critical
- [ ] Refactor to generators
- [ ] Rust bindings? (@MichielBier)

### The basics & too lazy to think of a category
- [x] each
- [x] reduce
- [ ] tap
- [x] sum
- [ ] average/avg
- [ ] contains
- [x] first
- [x] last
- [ ] merge
- [ ] isEmpty (refactor empty conditionals afterwards)
- [x] every
### Filtering
- [ ] filter
- [ ] except
- [ ] only
### Sorting
- [ ] sort
- [ ] sortBy
- [ ] sortByDesc
### Transforming
- [x] map
- [ ] flatMap
- [ ] mapWithKeys
- [ ] mapSpread
- [x] count
- [ ] keys
- [ ] values
### Representations
- [ ] all/toArray
- [ ] toJson
### Conditionals
- [x] when
- [x] whenEmpty
- [x] whenNotEmpty
- [x] unless
- [x] unlessEmpty
- [x] unlessNotEmpty