open:spec-cat

spec/cat

cat “concatenate” sequence items (first this, then that)

(s/conform (s/cat :num number?, :key keyword?) [5 :b])
;;=> {:num 5, :key :b}

Each item gets a name
The conformed result is a map that can easily be consumed with Clojure's destructuring

  • open/spec-cat.txt
  • 마지막으로 수정됨: 2022/03/08 06:58
  • 저자 127.0.0.1