Branch: refs/heads/main
Home:
https://github.com/lstrojny/functional-php
Commit: 5f5ddb6e7e005bd7413060f842d45f782ee240bb
https://github.com/lstrojny/functional-php/commit/5f5ddb6e7e005bd7413060f842d45f782ee240bb
Author: Hugo Sales <
hu...@hsal.es>
Date: 2021-11-29 (Mon, 29 Nov 2021)
Changed paths:
M composer.json
M docs/functional-php.md
A src/Functional/Entries.php
M src/Functional/Exceptions/InvalidArgumentException.php
A src/Functional/FromEntries.php
M src/Functional/Functional.php
A tests/Functional/EntriesFromEntriesTest.php
M tests/Functional/Exceptions/InvalidArgumentExceptionTest.php
Log Message:
-----------
Add `entries` and `from_entries`, inspired by JavaScript's `Object.entries` (and Python's `enumerate`) and `Object.from_entries`, respectively (#243)