Re: [PHP-DEV] RFC proposal - unpack iterator

2017-07-12 Thread Bartłomiej Krukowski
> > so that I can use functional composition instead of operators > (`array_map('...', $values))`). I think I do not understand. Still, the addition is very nice and complimentary with the existing > splat/variadic argument stuff :D So can I create RFC? :) 2017-07-12 14:12 GMT+02:00 Marco Pive

Re: [PHP-DEV] RFC proposal - unpack iterator

2017-07-12 Thread Marco Pivetta
On Wed, Jul 12, 2017 at 2:09 PM, Bartłomiej Krukowski < krukowski.bartlom...@gmail.com> wrote: > Hello, > > Yes, this is exactly what I would like to achieve. > > Best regards > > 2017-07-12 14:06 GMT+02:00 Marco Pivetta : > >> On Wed, Jul 12, 2017 at 11:22 AM, Bartłomiej Krukowski < >> krukowski.

Re: [PHP-DEV] RFC proposal - unpack iterator

2017-07-12 Thread Bartłomiej Krukowski
Hello, Yes, this is exactly what I would like to achieve. Best regards 2017-07-12 14:06 GMT+02:00 Marco Pivetta : > On Wed, Jul 12, 2017 at 11:22 AM, Bartłomiej Krukowski < > krukowski.bartlom...@gmail.com> wrote: > >> Hello, >> From PHP 5.6 we have possibility to add variadic functions and unp

Re: [PHP-DEV] RFC proposal - unpack iterator

2017-07-12 Thread Marco Pivetta
On Wed, Jul 12, 2017 at 11:22 AM, Bartłomiej Krukowski < krukowski.bartlom...@gmail.com> wrote: > Hello, > From PHP 5.6 we have possibility to add variadic functions and unpacking > arrays via *...* > Would be nice to extend responsibility of *...*. Sometimes in code I can > find lines similar to

[PHP-DEV] RFC proposal - unpack iterator

2017-07-12 Thread Bartłomiej Krukowski
Hello, >From PHP 5.6 we have possibility to add variadic functions and unpacking arrays via *...* Would be nice to extend responsibility of *...*. Sometimes in code I can find lines similar to the following: $result = array_merge(['some value'], ['some other value'], $array); I would like to sho