[Date Index]
[Thread Index]
[Author Index]
Re: Manually culling a list
*To*: mathgroup at smc.vnet.net
*Subject*: [mg115088] Re: Manually culling a list
*From*: Thomas Dowling <thomasgdowling at gmail.com>
*Date*: Thu, 30 Dec 2010 06:29:14 -0500 (EST)
Perhaps something like the following?
{PrimeQ[#], #} & /@ Range[30]
Out[8]= {{False, 1}, {True, 2}, {True, 3}, {False, 4}, {True, 5}, {False,
6}, {True, 7}, {False, 8}, {False, 9}, {False, 10}, {True,
11}, {False, 12}, {True, 13}, {False, 14}, {False, 15}, {False,
16}, {True, 17}, {False, 18}, {True, 19}, {False, 20}, {False,
21}, {False, 22}, {True, 23}, {False, 24}, {False, 25}, {False,
26}, {False, 27}, {False, 28}, {True, 29}, {False, 30}}
Tom Dowling
On Thu, Dec 30, 2010 at 9:10 AM, ntg <ntgladd at gmail.com> wrote:
> Hello guys,
>
> Suppose I have a longish list of items that I want to manually cull.
> It seems I should be able to do something like
>
> checkList = ({Checkbox[], #)& /@ list
>
> Then, I could write
>
> instanceOfCheckList = checkList
>
> check away, and hopefully see something like
>
> {{True, item1}, {False, item2}, ...}
>
> which I could manipulate. But all I see is the the list of "checked"
> checkboxs and items, not the consequence of checking the boxes. I can
> do a FullForm on instanceOfCheckList and extract what I need via list
> surgery-- but that is inelegant. I'm sure there is some magic
> incantation involving Evaluate or Interpretation or Dynamic. Can you
> help?
>
> Thanks,
> Tom
>
>
Prev by Date:
**WAV Import[] and Integer16 Issue**
Next by Date:
**Re: Possible bug in V8: Grid with TextCell**
Previous by thread:
**Manually culling a list**
Next by thread:
**Re: Manually culling a list**
| |