MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

question: {a,b,c}->{{a,b},{b,c}}??

  • To: mathgroup at
  • Subject: [mg2459] question: {a,b,c}->{{a,b},{b,c}}??
  • From: "Bart van der Zwet" <B.W.v.d.Zwet at>
  • Date: Sun, 12 Nov 1995 22:26:12 -0500


I'm working on a problem in which I have to substitute a list,
for instance {a,b,c,d} by the other list {{a,b},{b,c},{c,d}}.
I've managed to solve it for a given length of the first list, by
using the substitution-rule :
{a_,b_,c_} -> {{a,b},{b,c}}      (this for a list of three elements)
I would like to find out how this can be done for a list of arbitrary


Bart van der Zwet
Student Mathematics
Eindhoven University of Technology
The Netherlands
e-mail : B.W.v.d.Zwet at

  • Prev by Date: Re: Drawing on Density or Contour Graphics
  • Next by Date: Re: ROTATING ANIMATIONS in MMA?
  • Previous by thread: Re: question: {a,b,c}->{{a,b},{b,c}}??
  • Next by thread: RE: question: {a,b,c}->{{a,b},{b,c}}??