Skip to content

Major release: new features; breaking changes

Choose a tag to compare

@LordMonoxide LordMonoxide released this 09 Mar 16:23
· 4 commits to master since this release

New:

  • firstPair, lastPair: equivalent to first and last but returns the key as well
  • collect: global function in the BapCat\Collection namespace, alias for new Collection(...)
  • join: implodes a collection into a string
  • isEmpty: alias for count() === 0
  • toArray: use instead of all
  • combine: see PHP's array_combine

Changed:

  • Deprecated all in favour of toArray
  • keys/values now return collections