Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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