Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Lists and nested function parameters' topicStudent Support Forum > General > "Lists and nested function parameters"

Next Comment >Help | Reply To Topic
Author Comment/Response
tlatev
04/24/12 5:26pm

Using the example provided in the MMA help:

In:=Select[{1, 2, 4, 7, 6, 2}, # > 2 &]
Out:={4, 7, 6}

Now, I'm trying to map this to a list, so

Select[{1, 2, 4, 7, 6, 2}, # > a &]& /@ {2,4,6}

The problem is: how to tell MMA to substitute the "a" in this example with a value from my list?

the slot # doesn't work. I wanna end up with a list of lists for the outputs

I suspect it's a simple construct that I couldn't find in the help

URL: ,

Subject (listing for 'Lists and nested function parameters')
Author Date Posted
Lists and nested function parameters tlatev 04/24/12 5:26pm
Re: Lists and nested function parameters Bill Simpson 04/25/12 7:09pm
Next Comment >Help | Reply To Topic