4
votes
Destructuring the left-hand-side of `Optional[s:v]`
Edited because I didn't realize that key was intended to be literal.
...
3
votes
How to imitate list comprehensions for constant arrays?
There is an infix operator named Star which can be entered as esc star esc and looks exactly like the multiplication sign:
...
3
votes
3
votes
Destructuring the left-hand-side of `Optional[s:v]`
Edited because I didn't realize that key was intended to be literal.
Okay, how about pattern matching at a higher level?
...
3
votes
2
votes
Destructuring the left-hand-side of `Optional[s:v]`
Looking at your new example:
ReplaceAll[{key}, {key, value_ : 0} : "blah" :> value]
This is just a syntax error, because of how ...
1
vote
Destructuring the left-hand-side of `Optional[s:v]`
One solution, although not very elegant, is to use Alternatives and manipulate the assignment that shows up in the rule. The way this works is that it replaces all ...
1
vote
How to build the following region?
Somewhat improving your code, the following works well for me.
...
1
vote
Accepted
1
vote
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
syntax × 996list-manipulation × 104
functions × 83
plotting × 67
function-construction × 65
calculus-and-analysis × 45
equation-solving × 44
programming × 44
differential-equations × 37
evaluation × 34
performance-tuning × 33
core-language × 29
compile × 28
symbolic × 26
numerical-integration × 25
replacement × 24
matrix × 23
warning-messages × 21
symbols × 19
custom-notation × 18
simplifying-expressions × 17
operators × 17
mathematical-optimization × 16
front-end × 16
table × 16