Liking cljdoc? Tell your friends :D

Swark

SWiss ARmy Knife - Your everyday clojure toolbelt!

Clojars Project

This library contains functionality that you might need every single day as a happy clojure(script) developer. The aim is to provide composable functions that you can use everyday, but are just not as trivial as (some (comp #{42} :answer) answers).

All functionality should work in both Clojure and Clojurescript.

Basic usage

Clojure CLI/deps.edn

Add this dependency to the :deps map in deps.edn:

org.clojars.stanv/swark {:mvn/version "0.1.3"}

Require swark.core in your ns form:

(:require [swark.core :as swark])

Then you can use the Swark utility functions:

(swark/key-by :id [{:id 1 :name "one"} {:id 2 :name "two"}])

Tests

Run the tests with clojure -X:test/run

Development

Start a repl with clojure -M:repl/reloaded

Local installation

Install Swark locally with clj -X:install

Jar creation

Create an uberjar with clj -X:uberjar :jar swark-0.1.3.jar

License

Swark by Stan Verberkt is marked with CC0 1.0 Universal

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close