Re: Partition List
- To: mathgroup at smc.vnet.net
- Subject: [mg8437] Re: [mg8398] Partition List
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Sat, 30 Aug 1997 00:42:46 -0400
- Sender: owner-wri-mathgroup at wolfram.com
"Xah" <xah at best.com> [mg8398] Partition List wishes to partition a list at a designated special value. For example {3,7,10,6,1,1,6,1,7,10,3,4,6} with special value 10 should give {{3,7},{10,6,1,1,6,1,7},{10,3,4,6}} Xah: Split[{3,7,10,6,1,1,6,1,7,10,3,4,6}, #2=!=10&] {{3,7},{10,6,1,1,6,1,7},{10,3,4,6}} Allan Allan Hayes hay at haystack.demon.co.uk http://www.haystack.demon.co.uk/training.html voice:+44 (0)116 2714198 fax: +44 (0)116 2718642 Leicester, UK