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?