clojure.data

by Stuart Halloway

Full namespace name: clojure.data

Overview

Non-core data functions.

Protocols

DiffProtocol

Implementation detail. Subject to change.
Known implementations: java.util.List, java.util.Map, java.util.Set, nil, Object

diff-similarfunction

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

Added in Clojure version 1.3

Source

EqualityPartitionProtocol

Implementation detail. Subject to change.
Known implementations: java.util.List, java.util.Map, java.util.Set, nil, Object

equality-partitionfunction

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

Added in Clojure version 1.3

Source

Public Variables and Functions

difffunction

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.

Added in Clojure version 1.3

Source

© Rich Hickey
Licensed under the Eclipse Public License 1.0.
https://clojure.github.io/clojure/branch-clojure-1.8.0/clojure.data-api.html