Skip to content

Instantly share code, notes, and snippets.

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