This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-21
Channels
- # announcements (2)
- # asami (8)
- # aws (4)
- # beginners (32)
- # calva (12)
- # cider (72)
- # clj-kondo (16)
- # clojure (11)
- # clojure-germany (2)
- # clojure-italy (4)
- # clojure-serbia (2)
- # clojurescript (26)
- # data-oriented-programming (8)
- # datomic (9)
- # deps-new (17)
- # eastwood (4)
- # emacs (20)
- # fulcro (18)
- # funcool (1)
- # graalvm (8)
- # leiningen (12)
- # lsp (34)
- # malli (25)
- # meander (4)
- # membrane (4)
- # off-topic (153)
- # practicalli (1)
- # releases (2)
- # remote-jobs (3)
- # rewrite-clj (77)
- # ring (5)
- # shadow-cljs (108)
- # spacemacs (12)
- # tools-deps (9)
- # vscode (11)
- # xtdb (4)
(m/rewrite [["00:00" "01:00"] ["02:00" "03:00"]]
(m/or [(m/pred string?) ... :as !time]
[[(m/pred string?) ... :as !time] ...]
(m/let [!time ["00:00" "23:59"]]))
[!time ...])
shouldn't it return [["00:00" "01:00"] ["02:00" "03:00"]]
?It looks like theres something up with m/or
; I’ll take a look soon. For now (and I’m sure you’ve probably figured a work around) you can use
(me/rewrite [["00:00" "01:00"] ["02:00" "03:00"]]
(me/or [(me/pred string?) ..1 :as !time]
[[(me/pred string?) ... :as !time] ..1])
[!time ...]
_
[["00:00" "23:59"]])