SWiss ARmy Knife - Your everyday clojure toolbelt!
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.
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"}])
Run the tests with clojure -X:test/run
Start a repl with clojure -M:repl/reloaded
Install Swark locally with clj -X:install
Create an uberjar with clj -X:uberjar :jar swark-0.1.3.jar
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