Thank you very much for your solution and the variants! Now it looks quite concise and similar to what I'm used to.
Would it also be possible as a more general approach to create a matrix from the 2 vectors and then use a mapx function that takes f1 and the rows of the matrix as input? (Similar to the "apply" function in R).
Something like mapx f1 mat?
I looked at ReduceColumns but I'm not sure that's the right function. Map for matrix exists, but operates elementwise.
Would it also be possible as a more general approach to create a matrix from the 2 vectors and then use a mapx function that takes f1 and the rows of the matrix as input? (Similar to the "apply" function in R).
Something like mapx f1 mat?
I looked at ReduceColumns but I'm not sure that's the right function. Map for matrix exists, but operates elementwise.