Skip to content

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

Description

@clord

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]"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions