WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Group Abstract
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
1
|
4.7K Views
|
2 Replies
|
3 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Wolfram Language
Why Mathematica's built-in function 'Pick' does not work properly?
jarque
jarque
Posted
12 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
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
2
Steven Christensen
Steven Christensen, Steven M. Christensen and Associates. Inc. and UNC-CH
Posted
12 years ago
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 BY:
Steven Christensen
Reply
|
Flag
0
jarque
jarque
Posted
12 years ago
ok, it makes some sense-thanks!
POSTED BY:
jarque
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback