Created
October 19, 2012 19:01
-
-
Save oskarth/3920027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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