This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-27
Channels
- # announcements (8)
- # architecture (3)
- # aws (18)
- # beginners (96)
- # bristol-clojurians (3)
- # calva (15)
- # cider (7)
- # clj-kondo (8)
- # clojure (135)
- # clojure-denmark (1)
- # clojure-dev (14)
- # clojure-europe (37)
- # clojure-italy (9)
- # clojure-nl (14)
- # clojure-sanfrancisco (1)
- # clojure-spec (1)
- # clojure-uk (54)
- # clojurescript (27)
- # core-async (243)
- # cursive (28)
- # data-science (6)
- # datomic (33)
- # fulcro (25)
- # graalvm (24)
- # hoplon (2)
- # instaparse (12)
- # jackdaw (1)
- # java (21)
- # juxt (12)
- # meander (10)
- # nyc (4)
- # off-topic (6)
- # om (3)
- # pathom (17)
- # perun (1)
- # re-frame (29)
- # reitit (4)
- # rum (3)
- # shadow-cljs (119)
- # spacemacs (31)
- # xtdb (14)
Guys it's been a while since I've been in Meander. I'm trying to turn this:
{"users" [{"name" "Bob" "favoriteFood" "apple"} ...]
"foodsByName" {"apple" {"category" "fruit"} ...}}
into this:
[{"name" "Bob" "favoriteFood" "apple" "category" "fruit"} ...]
But I'm stuck at the first step 😛
(m/search data (m/scan {"name" ?name}) ?name) ;; => ()
What am I doing wrong here?Duh. I'm missing the "users"
key.
It would be cool to have something like this for Meander. https://borkdude.github.io/re-find.web/
@grounded_sage So I mentioned this at the end of my meander talk. But I actually did implement something where you can hand in some input and output and it will spit out a rewrite for you. It is pretty limited and didn't handle anything with repeats or anything like that. I've found those are the more common things. If someone wants to take a stab at making something like the above, I'd definitely be happy to help out with that.
@jimmy ah. It’s been a while since I watched that talk. It would definitely be hard to handle the more complex cases and doing some reshaping before or after sometimes is a more ideal solution. But definitely the more simple use cases could be handled
As an aside. I’m at the Clojure Datascience Meetup here in Berlin. Lots of people are really interested in Meander and have shown people how I have been using it