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

Generalize implicit navs to function like dynamic navs #195

Open
nathanmarz opened this issue Mar 24, 2017 · 0 comments
Open

Generalize implicit navs to function like dynamic navs #195

nathanmarz opened this issue Mar 24, 2017 · 0 comments

Comments

@nathanmarz
Copy link
Collaborator

nathanmarz commented Mar 24, 2017

Right now implicit navs must return a RichNavigator implementation. They would be more flexible if generalized so that:

  • An implicit nav can be returned (and then further "expanded")
  • Dynamic values can be in the return (so an implicit nav can use local parameters)

An example implicit nav you might want to build with these features is translating a map to multi-path + keypath, e.g.:

(transform {:a (nthpath i) :b STAY} inc {:a [1 2 3] :b 4})
;; => {:a [1 3 3] :b 5}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant