Re: Partition List
- To: mathgroup at smc.vnet.net
- Subject: [mg8440] Re: [mg8398] Partition List
- From: "C. Woll" <carlw at u.washington.edu>
- Date: Sat, 30 Aug 1997 00:42:50 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Hi Xah, How about Split[myList,#2=!=10&] Carl Woll Dept of Physics U of Washington On Tue, 26 Aug 1997, Xah wrote: > 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 > >