-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcat does not handle numbers correctly #383
Comments
Seems like the other way around. Base isn't handling it correctly, is it? Why should a number be repeated implicitly? I'd expect to see the same as julia> vcat([1;;], [1 2])
ERROR: ArgumentError: number of columns of each array must match (got (1, 2)) EDIT: I'm surprised to see that this implicit repetition mechanism is present since at least v1.0. I was not aware of this behavior, at all! |
For the record: It started to change behavior in v1.8. |
Honestly, I believe this is a very old "bug" in Julia Base. Guess the respective results! julia> vcat(1, [1 2]) # works
julia> vcat([1 2], 3) # throws!
julia> vcat(1, [1 2], 3) # throws! So, the "expansion" of numbers works only when the number is in the first place, and in no other! |
The text was updated successfully, but these errors were encountered: