>
> Maybe off-topic, but I don't think you could "fix" them:
> for array_map, the array is variadic-like, so must be last;
> for array_filter, the callback is optional, so must be after the array.
> (Correct me if I'm wrong.)
>
> --
> Guilliam Xavier
>

Good point. Then that would be an opportunity to question whether
array_map() is doing too much, and should just work on a single array.
Like Array.map()
<https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Array/map>
in JS, Stream.map()
<https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html#map-java.util.function.Function->
in Java, Iterator.map()
<https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map> in
Rust, etc.

— Benjamin

Reply via email to