Skip to content

Collections implementation with generators

License

Notifications You must be signed in to change notification settings

gwleuverink/collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • each
  • reduce
  • tap
  • sum
  • average/avg
  • contains
  • first
  • last
  • merge
  • isEmpty (refactor empty conditionals afterwards)
  • every

Filtering

  • filter
  • except
  • only

Sorting

  • sort
  • sortBy
  • sortByDesc

Transforming

  • map
  • flatMap
  • mapWithKeys
  • mapSpread
  • count
  • keys
  • values

Representations

  • all/toArray
  • toJson

Conditionals

  • when
  • whenEmpty
  • whenNotEmpty
  • unless
  • unlessEmpty
  • unlessNotEmpty

About

Collections implementation with generators

Topics

Resources

License

Stars

Watchers

Forks

Languages