« first day (3403 days earlier)      last day (1064 days later) » 

1:58 AM
@CarlLange It certainly is. See InputAliases
I even do with specialized boxes/formatting environments with InputAliases, largely through TemplateBox. All of this is possible to set at the stylesheet level
 
 
4 hours later…
6:15 AM
Hi folks, what is the difference between Wolfram Engine and Mathematica kernels? :-)
 
6:40 AM
@KimJongUn Might be worth it to ask on the main site, maybe with an example of a similar thing. :)
@KimJongUn Wolfram Engine is kinda a kernel without a frontend and some other bits and bobs, and a different licensing structure.
 
@CarlLange Thank you. Understood.
 
@b3m2a1 Thanks, that's really helpful. I've almost never looked at the stylesheet stuff because it seemed very 2004 and I didn't want to give myself a headache. Are you aware of a handy QA somewhere to explain how to do this for all notebooks?
@kirkus That's probably a good idea, but I work on linux and I don't know if there's a nice cohesive option there. I actually use a custom keyboard for which I can write the firmware (using QMK qmk.fm) so it's really my own fault that | is hard to reach
Suppose I could actually make some keys that just input <| and |> now that I think about it...
 
 
2 hours later…
9:07 AM
Well, I guess that only took 2 hours of my life away... but now I can write turbofishes easily! <||->|>
 
9:19 AM
And to my question earlier: you can set it for all notebooks in the options inspector.
 
 
3 hours later…
12:03 PM
`f[{{a, b}, {c, d}, {a}}] /. List -> Sequence` produces `f[a, b, c, d, a]`

Now, how to obtain `f[{a, b, c, d, a}]`?
I am not good at pattern matching.
 
 
2 hours later…
1:40 PM
@KimJongUn I don't have Mathematica available right now but perhaps something like Join @@@ f[...] or Flatten /@ f[...]. If you need to do it with pattern matching, perhaps f[...] ./ f[x_] :> f[Flatten[x]]
 
1:57 PM
@C.E. Thank you. The last one is promising. I am trying it now.
It works. thanks!
 
2:40 PM
Why using [] is prohibited?
[a, b, c] /. [x__] -> x
does not work
mathematica is symbolic but does not allow []
 
 
1 hour later…
3:48 PM
@KimJongUn I don't understand what you are trying to say with that code. All Mathematica code is a single expression of the form head[subexpr1, subexpr2, ...]. Lots of books on Mathematica begin with a sentence to this very effect. Have a look at FullForm to see that any Mathematica code can be written in this way. Now, [x__] is supposed to be a subexpressions of Rule (->) but it clearly is not a an expression, because it does not have the format head[subexpr1, subexpr2,...]
 
4:12 PM
@C.E. OK. Make sense. Thank you very much!
 

« first day (3403 days earlier)      last day (1064 days later) »