API for map-utils - clojure-contrib v1.3 (in development)

by Jason Wolfe, Chris Houser

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at https://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.map-utils

Overview

Utilities for operating on Clojure maps.

Public Variables and Functions



deep-merge-with

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (deep-merge-with f & maps)
Like merge-with, but merges maps recursively, applying the given fn
only when there's a non-map at a particular level.

(deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4}
             {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}})
-> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
Source


lazy-get

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (lazy-get map key not-found)
Like get, but doesn't evaluate not-found unless it is needed.
Source


safe-get

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (safe-get map key)
Like get, but throws an exception if the key is not found.
Source


safe-get-in

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (safe-get-in map ks)
Like get-in, but throws an exception if any key is not found.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.