Releases: fp4php/functional
Releases · fp4php/functional
Release v3.0.0
- drop jsonSearch function because of additional composer dependency
- drop mtdowling/jmespath.php package dependency
- replace reversed value+key arguments with short living Entry objects for HashMap
- move Option::getOrElse callable argument type to Option::getOrCall
- additional Set ops
- drop Map::reduce @experimental method
Release v2.4.2
- Do-notation temporary fix
- Deprecate jsonSearch function
- Replace symfony string component usages with native php functions
- Internal class markings
- None and Unit singletons
- Drop redundant dev dependencies
Release v2.4.1
Drop composer.lock
Release v2.4.0. Filtering
- Psalm plugin type refinement for collection filter and filterNotNull operations
- Map key type refining support
- appendedAll collection operation has been added
- prependedAll collection operation has been added
- takeWhile collection operation has been added
- dropWhile collection operation has been added
- take collection operation has been added
- drop collection operation has been added
- groupBy collection operation has been added
Release v2.3.0. ArrayList and NonEmptyArrayList
- ArrayList implementation of IndexedSeq interface.
- NonEmptyArrayList implementation of NonEmptyIndexedSeq interface.
- Countable implementation for every collection class.
Release v2.2.4
- Expand HashContract::equals $rhs type to mixed. Classes which implement HashContract should be able to enable or disable subclass equality
- Deprecate isSequence function. Drop internal usages
- Deprecate isNonEmptySequence function. Drop internal usages.
- Deprecate pluck function. Use map function instead
- Deprecate fold function. Use Seq::fold() or Set::fold() or Map::fold()
- Deprecate reduce function. Use Seq::reduce() or Set::reduce()
- Deprecate reduceNel function. Use NonEmptySeq::reduce() or NonEmptySet::reduce()
- Deprecate reduceNer function. Use NonEmptySeq::reduce() or NonEmptySet::reduce()
- Deprecate unique function. Use Set or Seq::unique()
- Mark Map::reduce as experimental
Release v2.2.3
- Fix fold signature
- Fix reduce signature
- Drop fold deprecation
Release v2.2.2
- Drop TK template constraint for HashMap
- Drop TV template constraint for HashSet
- It's now possible to use arrays of objects which implement HashContract as keys in HashMap and as elements in HashSet
- Additional convert methods for collections
- Documentation example with HashContract implementation
- Fold methods are now deprecated. Use reduce + Option::getOrElse.
- Seq::unique marked as experimental. Try to use Set's instead.
Release v2.2.1. Collections documentation
- REPL doc for every collection operation
- Collection documentation with usage examples
Release v2.2.0. HashSet and NonEmptyHashSet
- HashSet
- NonEmptyHashSet
Hash sets are based on HashMap and thus aware of HashContract implementations.