You should read the docs, and this discussion:
That said, it is very likely that you want to use 1:10
as is (without allocating an array), or if you want to modify values, collect(1:10)
.
You should read the docs, and this discussion:
That said, it is very likely that you want to use 1:10
as is (without allocating an array), or if you want to modify values, collect(1:10)
.