Skip to content

wdhowe/clj-contrib

Repository files navigation

clj-contrib

Build Status Clojars Project cljdoc Clojure version

A library of functions to enhance clojure.core.

Getting Started

Using the clj-contrib library.

Installation

See Clojars for adding this library to various project types (lein, boot, deps.edn, etc).

Include the Library

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]))

Use the Library

;; 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.

About

A library of Clojure functions to enhance clojure.core.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Generated from wdhowe/clj-project