Skip to content
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

Adding support for BackwardsIndex on vector #43

Open
ippaveln opened this issue Apr 3, 2022 · 0 comments
Open

Adding support for BackwardsIndex on vector #43

ippaveln opened this issue Apr 3, 2022 · 0 comments

Comments

@ippaveln
Copy link
Contributor

ippaveln commented Apr 3, 2022

It would be cool to add BackwardsIndex support for vectors.
For example:

let v = makeVector(5, proc(i: int): float64 = (3 * i - 2).float64)
assert v[^5] == -2.0
ippaveln added a commit to ippaveln/neo that referenced this issue Apr 3, 2022
andreaferretti added a commit that referenced this issue Apr 4, 2022
fix issues #43, add backwardindex for vector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant