Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@kafoso kafoso released this 28 Jul 20:29
  • New method: "toReindexed"
    Make a clone of the current collection, indexed by (i.e. keys being changed) the logic provided in a Closure. Very useful for indexing database records, which has a unique column (ID (often AUTO_INCREMENT), UUID, and similar). In case of duplicate keys, the default behavior is that an exception is thrown. However, this may be changed so that no exception is thrown and instead either the first or the last encountered element with the same key is used.
  • CollectionInterface: Added proper @param Closure type hints, explaning the parameters and return types involved.
  • Various coding style fixes.