kronos / regroup
Utility classes to regroup elements in sets
Installs: 48 729
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 22
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.1
Requires (Dev)
- phpunit/phpunit: 9.5.20
- vimeo/psalm: 4.23.0
This package is auto-updated.
Last update: 2023-02-03 16:40:16 UTC
README
Utility classes to regroup elements in sets
For now, it can regroup identical elements based on a given comparison function or a hash function
Note regarding regroupIdentialElements
The order in which elements are given won't affect the result. Given three elements A, B and C where A and C match, B and C match but A and B do not, the result will always be a set containg A, B and C.
See tests for examples.