garp-functional
garp-functional copied to clipboard
concat_with is not curried correctly
It incorrectly passes array_slice(func_get_args(), 1)
to partial
when given <= 2 arguments.
This would be the correct call:
return call_user_func(
partial,
concat_with,
...func_get_args()
);
This needs a test.