Skip to content

Instantly share code, notes, and snippets.

Created Oct 19, 2012
What would you like to do?
(ns chipper.core
(:use [clojure.contrib.combinatorics :only (selections)])
(:use [clojure.pprint :only (pprint)])
(:require [ :as macro]))
(defn bool-space
"Generates every possible boolean n-tuple."
(selections [0 1] n))
(defn kws->syms
"Turns [:a :b] into [a b]"
(vec (map #(symbol (name %)) coll)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment