Repository navigation
Replies: 2 comments
|
You can just do $collection->map(NumbersEnum::from(..))->dump();which is even shorter |
0 replies
|
Realization is already exists $collection->mapInto(NumbersEnum::class); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I with the
Collectioncould havemapToEnummethod:Output:
[ NumbersEnum::one, NumbersEnum::two ]All reactions