fooheads stdlib is a collection of utility functions and macros for clojure and clojurescript projects. It provides helpers for sequence manipulation, string templating, numeral conversion and more. The library is published under the coordinates com.fooheads/stdlib.
Add the dependency to your deps.edn:
{:deps {com.fooheads/stdlib {:mvn/version "0.4.7"}}}Refer to the namespaces under fooheads.stdlib and fooheads.numeral for the available functions. A few highlights include:
render-template– simple string templating using{key}placeholders.digitsanddigit-string– convert numbers to and from arbitrary bases.- Sequence helpers such as
mapt,filtert,partition-usingand more.
See the tests directory for additional examples.
Run the test suite with:
clojure -M:testAll tests should pass with exit code 0.
Distributed under the Eclipse Public License v2.0.