All Questions
Tagged with expression-construction core-language
3
questions
4
votes
1
answer
127
views
Alternatives in pure function construction
When I declare a function f in the following form:
f[a|b] := 1
then I can use it like:
...
1
vote
0
answers
107
views
Is there a good reason why `Slot[]` is not an atomic expression?
Here's a good reason why I think it should be,
Map[ If[AtomQ@#, #->"is an atom", #->"not an atom"]&
, {"hello",Range@3, # &}
, {-1}
]
...
11
votes
1
answer
307
views
Why can't a string be formed by head String?
Since everything is an expression in Mathematica, why must a string object be formed by "abc" but not by a String[abc] ...