Hi, I was wondering if it’s possible at all to negate elements in a collection using vectorization. So something like -.(1,2,3). I tried this in Julia, but it doesn’t seem to be accepted syntax.
I could use -1 .* (1,2,3) but that is rather ugly, no? Is there a better way?
The trick is that for some reason in the murky past, we decided that a +. b was weird looking and it was better to write a .+ b, so now all ‘operators’ need a dot in front of them instead of behind them.
I am almost sure that there was an ambiguity problem or something related that forced the dot side for function and operators to be opposite, not just “weird looking”.