in q the dyadic zip operation is done by '
. I.e.
l1:("a1";"a2")
l2:("b1";"b2")
(l1,'l2)~("a1b1";"a2b2")
I parse this '
as a dyadic operator '[g;l2]
where g
is a projection of some dyadic function on lists onto a monadic function, e.g. g:,[l1;]
.
So if we want to perform any other map apart from ,
during the zipping operation, I would redefine g
.
However, '[g;l2]
does not give me the expected list output but returns func
The question is: how do I apply arbitrary maps during the zipping operation? E.g. how do I do something like l1 f' l2
where in the example f:,
but in general f
some dyadic operator on to list items?
Thanks for the help