API for core - clojure-contrib v1.2 (stable)

by Laurent Petit (and others)

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 http://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.core

Overview

Functions/macros variants of the ones that can be found in clojure.core
(note to other contrib members: feel free to add to this lib)

Public Variables and Functions



-?>

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (-?> x form)
       (-?> x form & forms)
Same as clojure.core/-> but returns nil as soon as the threaded value is nil itself (thus short-circuiting any pending computation).
Examples :
(-?> "foo" .toUpperCase (.substring 1)) returns "OO"
(-?> nil .toUpperCase (.substring 1)) returns nil
Source


-?>>

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (-?>> x form)
       (-?>> x form & forms)
Same as clojure.core/->> but returns nil as soon as the threaded value is nil itself (thus short-circuiting any pending computation).
Examples :
(-?>> (range 5) (map inc)) returns (1 2 3 4 5)
(-?>> [] seq (map inc)) returns nil
Source


.?.

macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (.?. x form)
       (.?. x form & forms)
Same as clojure.core/.. but returns nil as soon as the threaded value is nil itself (thus short-circuiting any pending computation).
Examples :
(.?. "foo" .toUpperCase (.substring 1)) returns "OO"
(.?. nil .toUpperCase (.substring 1)) returns nil
Source


dissoc-in

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (dissoc-in m [k & ks :as keys])
Dissociates an entry from a nested associative structure returning a new
nested structure. keys is a sequence of keys. Any empty maps that result
will not be present in the new structure.
Source


new-by-name

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (new-by-name class-name & args)
Constructs a Java object whose class is specified by a String.
Source


seqable?

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (seqable? x)
Returns true if (seq x) will succeed, false otherwise.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.