Skip to content

Instantly share code, notes, and snippets.

@hugoduncan
hugoduncan / 1-rewrite_usage.clj
Created November 24, 2012 00:19 — forked from lynaghk/1-rewrite_usage.clj
Questions about fancy map rewriting via core.logic
(rewrite-layer
{:mapping {:y :mpg}
:stat (stat/quantiles)})
;; =>
{:mapping {:upper :q75, :min :min, :lower :q25, :max :max, :middle :q50, :y :mpg}
:stat #com.keminglabs/c2po$stat$quantiles {:dimension :mpg}
:geom #com.keminglabs/c2po$geom$boxplot {}}