首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

clojure.data

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

概述

代码语言:javascript
复制
Non-core data functions.

协议

DiffProtocol

代码语言:javascript
复制
Implementation detail. Subject to change.

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

差相似函数

代码语言:javascript
复制
Usage: (diff-similar a b)
代码语言:javascript
复制
Implementation detail. Subject to change.

在Clojure版本1.3中添加

公平参与协议

代码语言:javascript
复制
Implementation detail. Subject to change.

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

相等-分区函数

代码语言:javascript
复制
Usage: (equality-partition x)
代码语言:javascript
复制
Implementation detail. Subject to change.

在Clojure版本1.3中添加

公共变量和函数

扩散函数

代码语言:javascript
复制
Usage: (diff a b)
代码语言:javascript
复制
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中添加

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com