This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-28
Channels
- # announcements (2)
- # aws (21)
- # babashka (4)
- # babashka-sci-dev (17)
- # beginners (3)
- # cider (16)
- # clj-kondo (61)
- # clojure (122)
- # clojure-europe (11)
- # clojure-spec (3)
- # clojurescript (2)
- # conjure (19)
- # helix (9)
- # hyperfiddle (2)
- # inf-clojure (18)
- # lsp (12)
- # off-topic (15)
- # react (2)
- # releases (1)
- # shadow-cljs (40)
- # spacemacs (4)
- # tools-deps (5)
- # vim (15)
Photon Observation: The sorting of maps
ist lost here. This seems to be a behavior of dom/for
.
(p/defn DataViewer [title maps]
(let [ks (u/all-keys maps)]
(dom/h1 (dom/text title))
(dom/table
(dom/thead
(dom/for [k ks]
(dom/td (dom/style {"min-width" "5em"}) (dom/text k))))
(dom/tbody
(dom/for [m maps]
(dom/tr
(dom/for [k ks]
(dom/td (dom/text (m k))))))))))
✅ 1