Clojure SchemaClojure(Script) 库
Schema 是一个 Clojure(Script) 库,用来声明数据描述和验证。
代码示例:
(ns schema-examples (:require [schema.core :as s :include-macros true ;; cljs only ])) (def Data "A schema for a nested data type" {:a {:b s/Str :c s/Int} :d [{:e s/Keyword :f [s/Num]}]}) (s/validate Data {:a {:b "abc" :c 123} :d [{:e :bc :f [12.2 13 100]} {:e :bc :f [-1]}]}) ;; Success! (s/validate Data {:a {:b 123 :c "ABC"}}) ;; Exception -- Value does not match schema: ;; {:a {:b (not (instance? java.lang.String 123)), ;; :c (not (integer? "ABC"))}, ;; :d missing-required-key}
评论
Clojure TitaniumClojure 图形库
Titanium 是一个强大的 Clojure 图形库,基于 Aurelius Titan 构建,提
Clojure TitaniumClojure 图形库
0
Clojure TitaniumClojure 图形库
Titanium是一个强大的Clojure图形库,基于AureliusTitan构建,提供了Clojure风格的API和图像处理DSL。
Clojure TitaniumClojure 图形库
0
clojure2minizincMiniZinc 的 Clojure 接口库
clojure2minizinc 是一个通过 MiniZinc 解决约束满足问题的 Clojure
clojure2minizincMiniZinc 的 Clojure 接口库
0
clojure2minizincMiniZinc 的 Clojure 接口库
clojure2minizinc是一个通过MiniZinc解决约束满足问题的Clojure库。clojure2minizinc提供一个state-of-the-artconstraintsolvers
clojure2minizincMiniZinc 的 Clojure 接口库
0
ClojureCL和 OpenCL 进行并行计算的 Clojure 库
Clojurecl 是一个 Clojure 库,用于和 OpenCL 进行并行计算,它支持最新的 O
ClojureCL和 OpenCL 进行并行计算的 Clojure 库
0
ClojureCL和 OpenCL 进行并行计算的 Clojure 库
Clojurecl是一个Clojure库,用于和OpenCL进行并行计算,它支持最新的OpenCL2.0,并且使用MarcoHutter'sJOCL.org提供的快速手写JNI绑定,与供应商的Open
ClojureCL和 OpenCL 进行并行计算的 Clojure 库
0
XML for SCRIPT
XMLforSCRIPT是一个功能强大、支持标准的JavaScript的XML解析器,用于帮助Web开发人员编写跨平台的XML数据解析,同时也提供了一个强大的工具,包括:Astandards-comp
XML for SCRIPT
0
guildsmanTensorFlow library for Clojure
GuildsmanResignationAsofJuly6,2018,I'mresigningfrommyworkonGuildsman.WhileIhavemanythingsworking,Ine
guildsmanTensorFlow library for Clojure
0