(require '[clojure.spec.alpha :as s])
(s/def ::name string?)
(s/def ::align #{:law :neutral :chaos})
(s/def ::level pos-int?)
(s/def ::magic (s/coll-of string?))
(s/def ::profile
(s/keys :req-un [::name ::align ::level ::magic]))
(s/conform ::profile
{:name "r6eve"
:align :neutral
:level 5
:magic ["Functional & Object-oriented Programming"
"Perl-like Programming"
"AUR package maintenance"
"Pulinpa (against Linux Kernel)"]})
More
スパゲティ生成モンスター
Block or Report
Block or report r6eve
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abuse