Closed jfroche closed 5 years ago
Hello ! The following expression fails:
$i = ['a', 'b'].reduce({}) |$result, $k| { merge($result, {"key.${k}" => $k}) }
with the following error message:
You can't combine chains of higher order functions (with .) and giving them parameters
I see here that the reduce is not implemented yet, would it be hard to implement it ?
Thank you !
I just pushed a completely untested implementation of the reduce function.
LGTM
Hello ! The following expression fails:
with the following error message:
I see here that the reduce is not implemented yet, would it be hard to implement it ?
Thank you !