We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expected this to return 2 instead of nothing:
julia> using Moshi.Match: @match julia> @match view([1, 2, 3], :) begin [1, x, 3] => x _ => nothing end
The culprit seems to be that [1, x, 3] looks for v isa Vector instead of v isa AbstractVector. Would this make sense to generalize to AbstractVector?
[1, x, 3]
v isa Vector
v isa AbstractVector
AbstractVector
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I expected this to return 2 instead of nothing:
The culprit seems to be that
[1, x, 3]
looks forv isa Vector
instead ofv isa AbstractVector
. Would this make sense to generalize toAbstractVector
?The text was updated successfully, but these errors were encountered: