Re: delete something from a complex list
- To: mathgroup at smc.vnet.net
- Subject: [mg58078] Re: [mg58075] delete something from a complex list
- From: yehuda ben-shimol <bsyehuda at gmail.com>
- Date: Fri, 17 Jun 2005 07:09:26 -0400 (EDT)
- References: <200506170920.FAA07915@smc.vnet.net>
- Reply-to: yehuda ben-shimol <bsyehuda at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
Use DeleteCases[] DeleteCases[{{{{1, 3, 2, 4}}, {{5, 2}}}, {{4, 2}, {6, 1, 7}}}, 1, Infinity] will give you the exact expression you need yehuda On 6/17/05, mark <rotree2003 at yahoo.com> wrote: > > hi > how to delete numbers 1 and 2 from the multilevel nested list, while preserving the structure: > {{{{1,3,2,4}},{{5,2}}},{{4,2},{6,1,7}}} > i hope the result is: > {{{{3,4}},{{5}}},{{4},{6,7}}} > i have tried delete with no success but after i have flatten the list. > thanks > > >
- References:
- delete something from a complex list
- From: mark <rotree2003@yahoo.com>
- delete something from a complex list