Partition List
- To: mathgroup at smc.vnet.net
- Subject: [mg8398] Partition List
- From: "Xah" <xah at best.com>
- Date: Tue, 26 Aug 1997 20:41:38 -0400
- Organization: smtp.best.com
- Sender: owner-wri-mathgroup at wolfram.com
A question on programing. I want to partition a list, using special values in the list as boundary indicators. For example, myList={3,7,10,6,1,1,6,1,7,10,3,4,6} and my special value for boundary is 10, then my desired result would be result={{3,7},{10,6,1,1,6,1,7},{10,3,4,6}}. How to do this using structure manipulating operators, and how to do it with pattern matching? Thanks. Xah, xah at best.com http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html Mountain View, CA, USA