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 query of arrays in TomlPath's isString instance #1

Open
clord opened this issue Apr 6, 2016 · 0 comments
Open

Support query of arrays in TomlPath's isString instance #1

clord opened this issue Apr 6, 2016 · 0 comments

Comments

@clord
Copy link
Member

clord commented Apr 6, 2016

I imagine this would look something like: "a[0]", and would play well with other paths, like "a.b[0].c". Of course for arbitrary arrays it would be better to construct the TomlPath explicitly, or with a lens. The purpose of this style of query is for fixed-length arrays with a meaning assigned to each slot, like:

point = [0,1,2]

So that query can be something like getX = query "point[0]"

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