clojure-spec

Ahmed Hassan 2024-10-06T11:34:47.380309Z

In https://clojure.org/about/spec page, when we evaluate this snippet in REPL, we receive in the s/conform result :ex [:odd 11] instead of :ex {:odd 11}, which is given in the original snippet.

Alex Miller (Clojure team) 2024-10-06T12:25:29.379829Z

Looks like the example might be wrong there - I’ll take a look tomorrow

Ahmed Hassan 2024-10-06T12:36:07.928749Z

what is the reason of returning vector instead of map?

Alex Miller (Clojure team) 2024-10-06T13:05:01.451259Z

All regex ops are destructuring a sequential collection. alt by itself is an or in the context of a collection. alt by itself is a little unusual, usually it’s in a cat