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

How might an operator be defined as a recursive structure? #33

Open
verdverm opened this issue Nov 19, 2021 · 1 comment
Open

How might an operator be defined as a recursive structure? #33

verdverm opened this issue Nov 19, 2021 · 1 comment

Comments

@verdverm
Copy link
Member

Creating an issue to capture the later thought in #32

How could we define an operator input, such that it applies recursively to a tree which is itself recursive?

a tree:

name: "a1
val: 0
children: [{
  name: "b1"
  val: 0
  children: [ { name: "c1", val: 0 }]
},{  
  name: "b2"
  val: 0
  children: [ { name: "c2", val: 0 }]
}]

the desired pick per node would produce the tree with just names

name: string
children: <...>?
@verdverm
Copy link
Member Author

If we specify the "recursion field" like children above, then we ought to be able to mutually recurse on Pick and target, while recursing on the field to reset context, with something like a PickR that moves us down the recursive structure

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