This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-24
Channels
Q: I would like to express a navigation using zipper steps as data. Is there a way (or an example) of how to do this?
i.e. instead of this code… (-> zloc (z/find-value z/next ’foo) (z/down)) I’d like to use something like… [{:op :find-next :target ’foo} {:op :down}]
I could create a multimethod DSL for something like this or a macro but I’m wondering if this already exists?
Not that I know of @U0510KXTU!
this is for Hotplate which is a tool I use to generate/create applications. it’s not yet OSS but I will open it up once I have the resources to manage it. when I do, touch base and I’ll show you where this little DSL is used
it reminds me a lot of Specter navigators. I bet there’s quite a diaspora of navigation DSLs in the clojure world