Skip to content

Releases: Hi-Folks/array

Hacktoberfest 2022 - 001

01 Oct 21:17
Compare
Choose a tag to compare

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

25 Apr 07:00
Compare
Choose a tag to compare
  • Review where method, where(price, '>', 100)

Table class

24 Apr 21:52
Compare
Choose a tag to compare
  • Creating Table class
  • updating composer.json removing unused package

includes() and values() methods

22 Jan 14:09
Compare
Choose a tag to compare

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

28 Dec 10:49
Compare
Choose a tag to compare

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

19 Dec 14:59
Compare
Choose a tag to compare
  • Arr implements ArrayAccess

from* methods

14 Dec 06:35
Compare
Choose a tag to compare

Add

  • fromFunction() method for creating new Arr from a assignment function;
  • fromValue() method for creating new Arr from a value;