Releases: BapCat/Collection
Releases · BapCat/Collection
Release list
8.1+
PHP 8.1
This release supports PHP 8.1+. Support for older versions is dropped.
PHP 7.4/8.0+ Support
This release officially supports PHP 7.4 and PHP 8.0+. Support for older versions is officially dropped.
Major release: new features; breaking changes
New:
firstPair,lastPair: equivalent tofirstandlastbut returns the key as wellcollect: global function in theBapCat\Collectionnamespace, alias fornew Collection(...)join: implodes a collection into a stringisEmpty: alias forcount() === 0toArray: use instead ofallcombine: see PHP'sarray_combine
Changed:
- Deprecated
allin favour oftoArray keys/valuesnow return collections
Hotfix: ReadableCollection `$lazy` not defined
Merge pull request #14 from BapCat/master.CF.#13.define-lazy Define vars (closes #13)
Testing; code fixes
Merge pull request #11 from BapCat/master.CF.#5.tests Most testing complete [#5]
Bug fixes; new ways to access data; better testing
This release adds the clear method to completely clear a writable collection, and the take method to simultaneously get and remove (note: not atomically).
Initial Release
0.1 Make test scripts executable