Message Boards Message Boards

1
|
4060 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Why Mathematica's built-in function 'Pick' does not work properly?

Posted 11 years ago
Does anybody know why something like e.g.
Pick[{c, l, s}, {2, 0, 5}, Except[0]]
does not work?

And by 'does not work' I mean that it returns {c,l,s} when it should have returned {c,s} (right?).

Is it a bug or is it a feature?
POSTED BY: jarque
2 Replies
Pick[{c,l,s},{2,0,5},Except[0,_Integer]]
   works.   See the link

https://groups.google.com/forum/#!topic/comp.soft-sys.math.mathematica/sBEkL9DwQqE

f
or a long discussion of the details of Pick.   Others may have a diffferent method and there may be new bits I am not aware of.
Posted 11 years ago
ok, it makes some sense-thanks!
POSTED BY: jarque
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract