Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.52 KB

README.md

File metadata and controls

41 lines (35 loc) · 1.52 KB

jdf/comfort

Collection of tiny things which make life easier in Clojure and ClojureScript. API not guaranteed to be stable; you can choose a specific sha to depend on.

Serious folk should look elsewhere, e.g. https://github.com/weavejester/medley , https://github.com/cloojure/tupelo

Usage

{:deps {jdf/comfort {:git/url "https://github.com/jdf-id-au/comfort.git"
                     :sha "<insert current commit>"}}}

Functionality

  • comfort.core incl
    • defre simplistic regular expression group naming
    • collate-by (like group-by but less voluminous)
    • update-if-present, assoc-if-absent, redact-keys
    • tabulate, detabulate
    • hierarchicalise
    • dag, deps-order
    • with-resources
  • comfort.gen clojure.spec conveniences incl
    • salad word salad generator
  • comfort.io incl
    • pprint-with-meta
    • safe-spit
    • percent-encode
    • copy! and paste with system clipboard
  • comfort.plot data manipulation in the spirit of d3.js, incl polymorphic
    • (scale [domain-from domain-to] [range-from range-to])
    • ticks, nice
  • comfort.system incl
    • make-help repl documentation displayer
    • mem-report
    • doseq-timed
  • comfort.ui Swing-based REPL-friendly 2d painting incl
    • repl-frame
    • inset, align, anchor-string

Also see test namespaces.