A library of functions to enhance clojure.core.
Using the clj-contrib library.
See Clojars for adding this library to various project types (lein, boot, deps.edn, etc).
In the REPL
(require '[clj-contrib.core :as cc])
(require '[clj-contrib.core.async :as cca])In your application
(ns my-app.core
(:require [clj-contrib.core :as cc])
(:require [clj-contrib.core.async :as cca]));; Threading with nil checking (like some-> but with as-> binding)
(cc/as-some-> {:one 1, :two 2} mythings
(:one mythings)
(inc mythings)
(str "These " mythings " things and more!"))
;; Get the boolean value of an argument
(cc/bool "true")For complete API documentation and examples, see the cljdoc documentation.