我认为,为了防止他人走进我走过的兔子洞,删除关于maven构建的引用可能是个好主意,如果可能的话,甚至可以从仓库中拉取。
经过一番侦探工作,我使这个方法成功运行(我认为这是来自spec-alpha2早期版本)
(defproject scratch "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/spec-alpha2 "0.2.177-SNAPSHOT"]
[org.clojure/test.check "0.9.0"]]
:repositories [["sonatype" {:url "
https://oss.sonatype.org/content/repositories/snapshots/"}]])
(ns scratch.core
(:require [clojure.spec-alpha2 :as sa2]
[clojure.spec-alpha2.gen :as gen]))
(sa2/def ::x (s/and-
(s/cat :i1 int? :i2 int?)
#(apply distinct? %)))
等等等等