I am want to apply the Map
function to a nested list, via: Map[f, {{a1, b1}, {a2, b2}, {a3, b3}}, {0, 2}]
and get the result: f[{f[{f[a1], f[b1]}], f[{f[a2], f[b2]}], f[{f[a3], f[b3]}]}]
However, I want the function f
to only be applied at levels 0 and level 2. Map is applying f
on levels 0 to 2. How is this accomplished? The result l want is: f[{ {f[a1], f[b1]}], f[{f[a2], f[b2]}], f[{f[a3], f[b3]} }]
How can this be done? Given the generality of the software, I assumed this was possible. Thanks.