[lstrojny/functional-php] 5f5ddb: Add `entries` and `from_entries`, inspired by Java...

0 views
Skip to first unread message

Hugo Sales

unread,
Nov 29, 2021, 10:48:03 AM11/29/21
to functional-...@googlegroups.com
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)


Reply all
Reply to author
Forward
0 new messages