MathGroup Archive 1997

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

Search the Archive

List operations in ReplaceAll


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