This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-06
Channels
- # babashka (101)
- # beginners (47)
- # biff (7)
- # calva (36)
- # clj-kondo (19)
- # clojure (11)
- # clojure-europe (1)
- # clojurescript (4)
- # conjure (4)
- # core-typed (3)
- # cursive (24)
- # emacs (22)
- # events (4)
- # gratitude (1)
- # introduce-yourself (1)
- # malli (27)
- # meander (5)
- # off-topic (101)
- # portal (5)
- # shadow-cljs (26)
- # tools-build (4)
- # tools-deps (3)
- # vim (8)
- # xtdb (13)
I'm parsing a bunch of python into an ast and so I can answer some questions about it and thought of using meander for that, so far it's proven very useful and elegant. I hope I can keep figuring it out as my "questions" become more complicated 🙂
for example I wanted to "find all the places where ?x get called and give me the ?first-argument ?x gets called with" so used search
and $
to describe the pattern in the ast. Then I used scan
on the arguments, but that made it so there is no notion of "first" so I did some transformation on the result, however. Then I thought perhaps I could not scan
but try a vector with logic-var in the first position and a &rest after that (first tried ... in stead of &rest) Don't see any mention of & in the docs but happy it worked intuitively like that 🙂
@U09MR0T5Y I would be happy to give you a hand (the Python bit has me curious since I'm starting to mess around with Python myself). Can I ping you Monday or some time next week?