itertools-php

PHP Iteration Tools Library

MIT License

Downloads
2.3K
Stars
140
Committers
2

Bot releases are visible (Hide)

itertools-php - v1.8.0 Latest Release

Published by markrogoyski about 1 year ago

New Features

  • Set
    • distinctBy
  • Stream
    • distinctBy
itertools-php - v1.7.0

Published by markrogoyski over 1 year ago

New Features

  • Math
    • frequencies
    • relativeFrequencies

Improvements

  • Internal improvements for static analysis
itertools-php - v1.6.0

Published by markrogoyski over 1 year ago

New Features

  • Multi
    • zipFilled
  • Reduce
    • toNth
  • Stream
    • toNth
    • zipFilledWith
itertools-php - v1.5.0

Published by markrogoyski over 1 year ago

New Features

  • Reduce
    • toRandomValue
  • Set
    • union
    • unionCoercive
  • Single
    • skip
  • Summary
    • allUnique
    • isEmpty
  • Stream
    • Stream Operations
      • skip
      • unionWith
      • unionCoerciveWith
    • Debug Operations
      • peek
      • peekPrint
      • peekPrintR
      • peekStream
    • Reduction Terminal Operations
      • toRandomValue
    • Summary Terminal Operations
      • allUnique
      • isEmpty

Bug Fixes

  • Summary::allMatch now returns true on empty iterables, as was documented.
itertools-php - v1.4.0

Published by markrogoyski over 1 year ago

New Features

  • Single
    • flatMap
    • flatten
    • reverse
    • slice
  • Summary
    • arePermutations
    • arePermutationsCoercive
    • isPartitioned
  • Transform
    • tee
    • toArray
    • toAssociativeArray
    • toIterator
  • Stream
    • Stream Operations
      • flatMap
      • flatten
      • reverse
      • slice
    • Summary Terminal Operations
      • arePermutationsWith
      • arePermutationsCoerciveWith
      • isPartitioned
    • Transformation
      • tee
      • toArray
      • toAssociativeArray
      • toIterator

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.
itertools-php - v1.3.0

Published by markrogoyski over 1 year ago

New Features

  • Single
    • compressAssociative
    • filter
    • reindex
    • filterKeys
  • Reduce
    • toFirst
    • toLast
    • toFirstAndLast
    • toMin (parameter $compareBy added)
    • toMax (parameter $compareBy added)
    • toMinMax (parameter $compareBy added)
  • Sort
    • asort
    • sort
  • Stream
    • Source
      • ofRange
      • ofFileLines
      • ofCsvFile
    • Stream Operations
      • asort
      • compressAssociative
      • filter
      • reindex
      • filterKeys
      • sort
    • Reduction Terminal Operations
      • toFirst
      • toLast
      • toFirstAndLast
      • toMin (parameter $compareBy added)
      • toMax (parameter $compareBy added)
      • toMinMax (parameter $compareBy added)
    • Transformation Terminal Operations
      • toAssociativeArray
    • File Terminal Operations
      • toFile
      • toCsvFile
  • 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
itertools-php - v1.2.0

Published by markrogoyski over 1 year ago

New Features

  • Single
    • chunkwise
    • chunkwiseOverlap
    • limit
    • map
  • Reduce
    • toMinMax
    • toRange
    • toString
  • Set
    • distinct
    • intersection
    • intersectionCoercive
    • partialIntersection
    • partialIntersectionCoercive
    • symmetricDifference
    • symmetricDifferenceCoercive
  • Summary
    • allMatch
    • anyMatch
    • exactlyN
    • noneMatch
  • Stream
    • Sources
      • of
      • ofCoinFlips
      • of Empty
      • ofRandomChoice
      • ofRandomNumbers
      • ofRandomPercentage
      • ofRockPaperScissors
    • Operations
      • chainWith
      • compress
      • chunkwise
      • chunkwiseOverlap
      • distinct
      • dropWhile
      • filterTrue
      • filterFalse
      • groupBy
      • infiniteCycle
      • intersectionWith
      • intersectionCoerciveWith
      • limit
      • map
      • pairwise
      • partialIntersectionWith
      • partialIntersectionCoerciveWith
      • runningAverage
      • runningDifference
      • runningMax
      • runningMin
      • runningProduct
      • runningTotal
      • symmetricDifferenceWith
      • symmetricDifferenceCoerciveWith
      • takeWhile
      • zipWith
      • zipLongestWith
      • zipEqualWith
    • Summary Terminal Operations
      • allMatch
      • anyMatch
      • exactlyN
      • isSorted
      • isReversed
      • noneMatch
      • sameWith
      • sameCountWith
    • Reduction Terminal Operations
      • toAverage
      • toCount
      • toMax
      • toMin
      • toProduct
      • toString
      • toSum
      • toMinMax
      • toRange
      • toValue
    • Transformation Terminal Operations
      • toArray
    • Side Effect Terminal Operations
      • callForEach
      • print
      • printLn
      • printR
      • varDump

Backwards Incompatible Changes

  • Multi Zip methods reset iteration keys and return as sequence of integers rather than arrays of original keys
itertools-php - v1.1.0

Published by markrogoyski almost 2 years ago

New Features

  • Multi
    • zipEqual
  • Single
    • pairwise
  • Summary
    • isSorted
    • isReversed
    • same
    • sameCount
  • Reduce
    • toAverage
    • toCount
    • toMax
    • toMin
    • toProduct
    • toSum
    • toValue
itertools-php - v1.0.0

Published by markrogoyski over 2 years ago

Initial release.

itertools-php - v0.3.0

Published by markrogoyski over 2 years ago

Iterative pre-release.

itertools-php - v0.2.0

Published by markrogoyski about 3 years ago

Iterative pre-release.

itertools-php - v0.1.0

Published by markrogoyski over 3 years ago

Initial pre-release.