Releases: markrogoyski/itertools-php
Releases · markrogoyski/itertools-php
v1.9.0
v1.8.0
New Features
- Set
distinctBy
- Stream
distinctBy
v1.7.0
New Features
- Math
frequenciesrelativeFrequencies
Improvements
- Internal improvements for static analysis
v1.6.0
New Features
- Multi
zipFilled
- Reduce
toNth
- Stream
toNthzipFilledWith
v1.5.0
New Features
- Reduce
toRandomValue
- Set
unionunionCoercive
- Single
skip
- Summary
allUniqueisEmpty
- Stream
- Stream Operations
skipunionWithunionCoerciveWith
- Debug Operations
peekpeekPrintpeekPrintRpeekStream
- Reduction Terminal Operations
toRandomValue
- Summary Terminal Operations
allUniqueisEmpty
- Stream Operations
Bug Fixes
Summary::allMatchnow returns true on empty iterables, as was documented.
v1.4.0
New Features
- Single
flatMapflattenreverseslice
- Summary
arePermutationsarePermutationsCoerciveisPartitioned
- Transform
teetoArraytoAssociativeArraytoIterator
- Stream
- Stream Operations
flatMapflattenreverseslice
- Summary Terminal Operations
arePermutationsWitharePermutationsCoerciveWithisPartitioned
- Transformation
teetoArraytoAssociativeArraytoIterator
- Stream Operations
Improvements
Single::groupBy- Allows the original grouping function to further separate into groups if the result of the grouping function is a list.
- A new parameter added to take a function to index the values within each group.
v1.3.0
New Features
- Single
compressAssociativefilterreindexfilterKeys
- Reduce
toFirsttoLasttoFirstAndLasttoMin(parameter$compareByadded)toMax(parameter$compareByadded)toMinMax(parameter$compareByadded)
- Sort
asortsort
- Stream
- Source
ofRangeofFileLinesofCsvFile
- Stream Operations
asortcompressAssociativefilterreindexfilterKeyssort
- Reduction Terminal Operations
toFirsttoLasttoFirstAndLasttoMin(parameter$compareByadded)toMax(parameter$compareByadded)toMinMax(parameter$compareByadded)
- Transformation Terminal Operations
toAssociativeArray
- File Terminal Operations
toFiletoCsvFile
- Source
- Docs
- Added Russian translation of README
Improvements
- Add option whether to include incomplete chunks at the end of a
chunkwiseOverlap - Keys preserved during iteration when it makes sense to do so
v1.2.0
New Features
- Single
chunkwisechunkwiseOverlaplimitmap
- Reduce
toMinMaxtoRangetoString
- Set
distinctintersectionintersectionCoercivepartialIntersectionpartialIntersectionCoercivesymmetricDifferencesymmetricDifferenceCoercive
- Summary
allMatchanyMatchexactlyNnoneMatch
- Stream
- Sources
ofofCoinFlipsof EmptyofRandomChoiceofRandomNumbersofRandomPercentageofRockPaperScissors
- Operations
chainWithcompresschunkwisechunkwiseOverlapdistinctdropWhilefilterTruefilterFalsegroupByinfiniteCycleintersectionWithintersectionCoerciveWithlimitmappairwisepartialIntersectionWithpartialIntersectionCoerciveWithrunningAveragerunningDifferencerunningMaxrunningMinrunningProductrunningTotalsymmetricDifferenceWithsymmetricDifferenceCoerciveWithtakeWhilezipWithzipLongestWithzipEqualWith
- Summary Terminal Operations
allMatchanyMatchexactlyNisSortedisReversednoneMatchsameWithsameCountWith
- Reduction Terminal Operations
toAveragetoCounttoMaxtoMintoProducttoStringtoSumtoMinMaxtoRangetoValue
- Transformation Terminal Operations
toArray
- Side Effect Terminal Operations
callForEachprintprintLnprintRvarDump
- Sources
Backwards Incompatible Changes
- Multi Zip methods reset iteration keys and return as sequence of integers rather than arrays of original keys
v1.1.0
New Features
- Multi
zipEqual
- Single
pairwise
- Summary
isSortedisReversedsamesameCount
- Reduce
toAveragetoCounttoMaxtoMintoProducttoSumtoValue
v1.0.0
Initial release.