非常教程

Clojure 1.8参考手册

Clojure 1.8

clojure.data

完整名称空间名称:clojure.data

概述

Non-core data functions.

协议

DiffProtocol

Implementation detail. Subject to change.

已知实现:java.util.List、java.util.Map、java.util-Set、nil、Object

差相似函数

Usage: (diff-similar a b)
Implementation detail. Subject to change.

在Clojure版本1.3中添加

来源

公平参与协议

Implementation detail. Subject to change.

已知实现:java.util.List、java.util.Map、java.util-Set、nil、Object

相等-分区函数

Usage: (equality-partition x)
Implementation detail. Subject to change.

在Clojure版本1.3中添加

来源

公共变量和函数

扩散函数

Usage: (diff a b)
Recursively compares a and b, returning a tuple of
[things-only-in-a things-only-in-b things-in-both].
Comparison rules:

* For equal a and b, return [nil nil a].
* Maps are subdiffed where keys match and values differ.
* Sets are never subdiffed.
* All sequential things are treated as associative collections
  by their indexes, with results returned as vectors.
* Everything else (including strings!) is treated as
  an atom and compared for equality.

在Clojure版本1.3中添加

来源

Clojure 1.8

Clojure 是一种运行在 Java 平台上的 Lisp 方言,Lisp 是一种以表达性和功能强大著称的编程语言,但人们通常认为它不太适合应用于一般情况,而 Clojure 的出现彻底改变了这一现状。如今,在任何具备 Java 虚拟机的地方,您都可以利用 Lisp 的强大功能。

版本 1.8
发布版本 1.8

Clojure 1.8目录

1.Clojure 1.8