julia-100-exercises icon indicating copy to clipboard operation
julia-100-exercises copied to clipboard

No 5 incorrect on README

Open dpsanders opened this issue 4 years ago • 1 comments

I don't see how to suggest a PR.

Number 5 is missing a semi-colon:

julia> Z = [10:99]   # wrong

1-element Vector{UnitRange{Int64}}:
 10:99


julia> Z = [10:99;]   # correct
90-element Vector{Int64}:
 10
 11
 12
 13

dpsanders avatar Feb 12 '21 19:02 dpsanders

Or collect(10:99), or Vector(10:99)

dpsanders avatar Feb 12 '21 19:02 dpsanders