src/clojurecraft/util.clj @ 3b17a92aa31b

Block and item type mappings.
author Steve Losh <steve@stevelosh.com>
date Wed, 03 Aug 2011 20:14:46 -0400
parents 580584e8bfbd
children c41de2845803
(ns clojurecraft.util)

(defmacro l [& body]
  `(let [result# (~@body)]
     (println result#)
     result#))

(defn invert [m]
  (apply assoc {} (mapcat reverse m)))