WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
1
|
6305 Views
|
2 Replies
|
3 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Wolfram Language
Finding symbols with a certain attribute
Greg Hurst
Greg Hurst
Posted
12 years ago
Is there a nice way to find all symbols with an Orderless Attribute? - This seems like a cumbersome way:
ToExpression /@
Select[Union[
Cases[Trace[Information["System`*"]],
ButtonBox[s_, __] :> s, \[Infinity]]],
MemberQ[Attributes[#], Orderless] &]
POSTED BY:
Greg Hurst
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
1
Oyvind Tafjord
Oyvind Tafjord
Posted
12 years ago
Here's a way
Select[Names["System`*"], MemberQ[ToExpression[#, InputForm, Attributes], Orderless] &]
POSTED BY:
Oyvind Tafjord
Reply
|
Flag
1
Andy Ross
Andy Ross, Wolfram Research Inc.
Posted
12 years ago
How about
With[{symb = Names["System`*"]}, Pick[symb, MemberQ[Attributes[#], Orderless] & /@ symb]]
POSTED BY:
Andy Ross
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
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback