Releases: Innmind/Immutable
Releases · Innmind/Immutable
5.1.0
5.0.0
4.15.0
4.14.1
Changed
- All
reduce
methods now explicit the fact that the callable may not be called when the structure is empty
Fixed
- A lazy
Sequence::slice()
no longer loads the whole underlyingGenerator
Innmind\Immutable\Set::matches()
,Innmind\Immutable\Sequence::matches()
andInnmind\Immutable\Map::matches()
no longer iterates over all elements when one value doesn't match the predicate- When using
yield from
in theGenerator
passed toSequence::lazy()
values may be lost on certain operations
4.14.0
4.13.0
Added
Innmind\Immutable\Maybe::memoize()
Innmind\Immutable\Either::memoize()
Innmind\Immutable\Sequence::memoize()
Innmind\Immutable\Set::memoize()
Innmind\Immutable\Sequence::toSet()
Innmind\Immutable\Sequence::dropWhile()
Innmind\Immutable\Sequence::takeWhile()
Changed
- Monads templates are now covariant
4.12.0
4.11.0
4.10.0
Added
Innmind\Immutable\Str::maybe()
Innmind\Immutable\Maybe::defer()
Innmind\Immutable\Either::defer()
Changed
->get()
,->first()
,->last()
,->indexOf()
and->find()
calls on a deferred or lazyInnmind\Immutable\Sequence
will now return a deferredInnmind\Immutable\Maybe
Fixed
Innmind\Immutable\Sequence::last()
returnedInnmind\Immutable\Maybe::nothing()
when the last value wasnull
, now it returnsInnmind\Immutable\Maybe::just(null)