Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What Clojure Spec is and what you can do with it. Parent comment
Let's say I have something like
(s/def :thespec (s/or :foo ::foo :bar ::bar))
(match [(s/conform :thespec val)] [:foo x] (do-something-with x) [:bar y] (do-something-else-with y))
There are no comments on this comment yet.
Let's say I have something like
I can then use it in conjunction with core.match like Which imho is an easier way to navigate these things.