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
When calling the [](start, count) on an array of Bool values, the resulting array always contains only false.
[](start, count)
Bool
false
The same issue occurs using other variants of the #[] method that return sub-arrays (#[](range) and #[]? methods).
#[]
#[](range)
#[]?
I think this line is breaking. It's (eventually) called from here
[true, false, true, true][0, 2] #=> [false, false]
$ crystal -v Crystal 0.31.1 [0e2e1d067] (2019-09-30) LLVM: 8.0.0 Default target: x86_64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Overview
When calling the
[](start, count)
on an array ofBool
values, the resulting array always contains onlyfalse
.The same issue occurs using other variants of the
#[]
method that return sub-arrays (#[](range)
and#[]?
methods).I think this line is breaking. It's (eventually) called from here
Code Example
Version
The text was updated successfully, but these errors were encountered: