Skip to content

Conversation

@stevelacey
Copy link
Contributor

@stevelacey stevelacey commented Apr 18, 2020

Standard array_map doesn't provide access to keys within it's callback, forcing the usage of collections, loops or awkward core function combos if you want to use the key, this moves the Collection map functionality over to Arr.

@taylorotwell
Copy link
Member

I suggest just using a collection and converting it back into an array.

@stevelacey
Copy link
Contributor Author

stevelacey commented May 19, 2022

Woohoo! #42398

@stevelacey stevelacey deleted the arr-map branch May 19, 2022 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants