Skip to content

Instantly share code, notes, and snippets.

@oskarth
Created October 19, 2012 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oskarth/3920027 to your computer and use it in GitHub Desktop.
Save oskarth/3920027 to your computer and use it in GitHub Desktop.
(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