Releases: Hi-Folks/array
Releases · Hi-Folks/array
Hacktoberfest 2022 - 001
0.0.8 - 2022-10-01
- not equal operator for where method
- Table::except() method to exclude some data
- Table::groupThenApply() method to apply aggregate functions
From Hacktoberfest:
- Add Pint as style checker by @tharun634
- Arr::from() method for creating new Arr from a string or array-like object by @nuernbergerA
- Arr::findIndex() method for finding the index of some element by @martijnengler
- Arr::entries() method returns a new Arr object that contains the key/value pairs for each index in the array by @LeoVie
Where method and the operator
- Review where method, where(price, '>', 100)
Table class
- Creating Table class
- updating composer.json removing unused package
includes() and values() methods
Add
- includes() method check if Arr it includes a certain value;
- values() method extracts values from current Arr and creates new one (without keys and generating numeric keys starting from 0).
add new methods avg, sum, at, keys, of
Add
- of() static method, for creating Arr instance from parameters;
- keys() method for extracting keys from Arr;
- at() method for returning the item at that integer index;
- sum() method;
- avg() method;
- doc/arr.md: class usage documentation.
Improve
- Improve concat() method, now accept array and scalar values.
Arr implements ArrayAccess
- Arr implements ArrayAccess
from* methods
Add
- fromFunction() method for creating new Arr from a assignment function;
- fromValue() method for creating new Arr from a value;