| Author |
Comment/Response |
yehuda
|
10/12/12 5:05pm
Prepare you functions and data
myfunction[x_, y_, z_] := x^2 + y + z^2;
xzList = {{1, 5}, {2, 6}, {3, 7}};
Functional Programming Style:
Map[myfunction[#[[1]], y, #[[2]]] &, xzList]
Pattern Matching Style:
xzList /. {x_, z_} :> myfunction[x, y, z]
IHTH
yehuda
URL: , |
|