Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Map over consequetive list elements"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:1+1 =



Original Message (ID '101630') By Bill Simpson:
In[3]:= g[f_,v_]:=Map[f@@#&,Partition[v,3,1]]; g[f,{a,b,c,d,e}] Out[4]= {f[a,b,c],f[b,c,d],f[c,d,e]} OR In[5]:= g[f_,v_]:=Map[Apply[f,#]&,Partition[v,3,1]]; g[f,{a,b,c,d,e}] Out[6]= {f[a,b,c],f[b,c,d],f[c,d,e]}