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
lo.Slice(arr, -1, 10) // panic: runtime error: slice bounds out of range
I think that compared to the native method(arr[1:10]), the meaning of lo.Slice() is to avoid panic caused by out-of-bounds as much as possible.
arr[1:10]
lo.Slice()
I would love to fix it.
The text was updated successfully, but these errors were encountered:
Pull Review: #256
Sorry, something went wrong.
No branches or pull requests
I think that compared to the native method(
arr[1:10]
), the meaning oflo.Slice()
is to avoid panic caused by out-of-bounds as much as possible.I would love to fix it.
The text was updated successfully, but these errors were encountered: