timbre/taoensso.timbre.utils.html
2013-06-01 19:42:03 +07:00

11 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html><head><link href="css/default.css" rel="stylesheet" type="text/css"><script src="js/jquery.min.js" type="text/javascript"></script><script src="js/page_effects.js" type="text/javascript"></script><title>taoensso.timbre.utils documentation</title></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html">Timbre 2.0.0 API documentation</a></h1></div><div class="sidebar" id="namespaces"><h3><span>Namespaces</span></h3><ul><li><a href="taoensso.timbre.html"><span>taoensso.timbre</span></a></li><li><a href="taoensso.timbre.frequencies.html"><span>taoensso.timbre.frequencies</span></a></li><li><a href="taoensso.timbre.profiling.html"><span>taoensso.timbre.profiling</span></a></li><li class="current"><a href="taoensso.timbre.utils.html"><span>taoensso.timbre.utils</span></a></li></ul></div><div class="sidebar" id="vars"><h3>Public Vars</h3><ul><li><a href="taoensso.timbre.utils.html#var-deep-merge-with"><span>deep-merge-with</span></a></li><li><a href="taoensso.timbre.utils.html#var-defonce*"><span>defonce*</span></a></li><li><a href="taoensso.timbre.utils.html#var-fq-keyword"><span>fq-keyword</span></a></li><li><a href="taoensso.timbre.utils.html#var-memoize-ttl"><span>memoize-ttl</span></a></li><li><a href="taoensso.timbre.utils.html#var-round-to"><span>round-to</span></a></li></ul></div><div class="namespace-docs" id="content"><h2>taoensso.timbre.utils documentation</h2><pre class="doc"></pre><div class="public" id="var-deep-merge-with"><h3>deep-merge-with</h3><div class="usage"><code>(deep-merge-with f &amp; maps)</code></div><pre class="doc">Like `merge-with` but merges maps recursively, applying the given fn
only when there's a non-map at a particular level.
(deepmerge-with + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4}
{:a {:b {:c 2 :d {:z 9} :z 3} :e 100}})
=&gt; {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}</pre></div><div class="public" id="var-defonce*"><h3>defonce*</h3><h4 class="macro">macro</h4><div class="usage"><code>(defonce* name expr)</code></div><pre class="doc">Like `clojure.core/defonce` but supports optional docstring and attributes
map for name symbol.</pre></div><div class="public" id="var-fq-keyword"><h3>fq-keyword</h3><h4 class="macro">macro</h4><div class="usage"><code>(fq-keyword name)</code></div><pre class="doc">Returns namespaced keyword for given name.
</pre></div><div class="public" id="var-memoize-ttl"><h3>memoize-ttl</h3><div class="usage"><code>(memoize-ttl ttl f)</code></div><pre class="doc">Like `memoize` but invalidates the cache for a set of arguments after TTL
msecs has elapsed.</pre></div><div class="public" id="var-round-to"><h3>round-to</h3><div class="usage"><code>(round-to places x)</code></div><pre class="doc">Rounds argument to given number of decimal places.
</pre></div></div></body></html>