I would like to call an Array of functions with a value and get an Array of the partially applied functions back.
My current code:
const my_array = pipe(flip(call), flip(map)([add, subtract]))(1)
// = [add(1), subtract(1)]
Is there a better way of doing this?
My goal (possibly unreasonable) would be to have a point-free alternative to the following function:
const bind_all = (funcs) => pipe(flip(call), flip(map)(funcs))
bind_all([add, subtract])(1)
// = [add(1), subtract(1)]
This seems to be similar to juxt, but returning an Array instead of a function.
Update: In response to the answers, I agree that my current code is far from readable, due to trying to force a point-free approach (with limited knowledge of existing patterns). This question is simply trying to explore the limits of point-free design that maintains readability.
The current answers seem to indicate that this is actually unreasonable.