Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.8K Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

What am I missing? Very basic

Posted 12 years ago

I've been using Mathematica for many years, and suddenly this very basic issue crops up. Why do the first and second inputs evaluate correctly but the third doesn't?

In[114]:= 

Select[{1, 2, 3, 4, 5}, # > 2 &]

Select[{1, 2, 3, 4, 5}, # > xx & /. xx -> 2]

Select[{1, 2, 3, 4, 5}, # > xx &] /. xx -> 2

Out[114]= {3, 4, 5}

Out[115]= {3, 4, 5}

Out[116]= {}
POSTED BY: Aaron S
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard