MathGroup Archive 1997

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

Search the Archive

List operations in ReplaceAll

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7610] [mg7610] List operations in ReplaceAll
  • From: bmarks at helix.nih.gov (William B. Marks)
  • Date: Thu, 19 Jun 1997 15:53:26 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

When I execute
{ {a, {b,c,e}} }  /.  {x_,  y_} -> {x, Length[y]}
I get
{{a,0}}.

I would like to get
{{a, 3}}

Any suggestions?





  • Prev by Date: Is there an Unformat in MMA 3.0?
  • Next by Date: 3D-Interpolation
  • Previous by thread: Is there an Unformat in MMA 3.0?
  • Next by thread: 3D-Interpolation