I know that one can act a function on every member of a list using the map
function, e.g.,
f(x):=block([x:x], x^2)$
foo:[1,2,3];
map('f,foo);
However, I haven't been able to work out how one would do the equivalent with an array of lists, and a function that acts on lists (vs. list members).
E.g., given bar:[[1,2,3],[a,b,c]]$
I'd like to find a general way to obtain a list of each member of bar
concatenated into a string, i.e., the output would be the same as:
[apply('sconcat, bar[1]), apply('sconcat,bar[2])];
I'd actually like to then concatenate the resulting list; however, that seems pretty straightforward, once at this point.