I'd be really great if Twig arrow functions can be passed as arguments. e.g. [Laravel collections unique method](https://laravel.com/docs/8.x/collections#method-unique) accepts a callable. I'd like to do something like this: ```twig {{ mycollection.unique(item => item.id) }} ``` Is that possible? Or an RFC?
I'd be really great if Twig arrow functions can be passed as arguments.
e.g. Laravel collections unique method accepts a callable.
I'd like to do something like this:
{{ mycollection.unique(item => item.id) }}Is that possible? Or an RFC?