Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. data1 = {a,b,c,d,e};
  2. data2 = {s,t,u,v,w};
  3.  
  4. (*MapThread correctly calls f[a,s], f[b,t], but builds up an expression*)
  5. MapThread[f, {data1, data2}]
  6.  
  7. (*MapIndexed calls g[a,{1}], g[b,{2}], but builds up an expression*)
  8. MapIndexed[g, data1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement