I’m a long time Matlab user trying to make the transition to Julia. It wasn’t obvious from reading the documentation whether the following behavior was a bug or just a characteristic of the language.
The following code throws an error, reporting no matching method in Julia 1.6.3
A = 1:10
B = A.^3
Is there a Julia-esque way to perform this operation or is this a bug?
Yeah, that might not have been a particularly good example. I just meant that if you really want to collect a range into a mutable vector for whatever reason that would be the preferable way to do it.