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

Support vector string indexing #262

Open
Dheu3 opened this issue Sep 17, 2023 · 1 comment
Open

Support vector string indexing #262

Dheu3 opened this issue Sep 17, 2023 · 1 comment

Comments

@Dheu3
Copy link

Dheu3 commented Sep 17, 2023

let s = ["hello"]
let x = int2{1,0}
print s[0][1]
print s[x]

Expected that line three and four would be the same, printing 101.

@aardappel
Copy link
Owner

Yes, that generally works across N vectors, but strings are not vectors, they are their own thing :)

I suppose we could enable this, but it be highly specialized, requiring its own codegen etc, so I am fine leaving it as is.

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

2 participants