src/clojurecraft/util.clj @ c41de2845803

Start working on chunks and gravity.
author Steve Losh <steve@stevelosh.com>
date Thu, 04 Aug 2011 00:22:22 -0400
parents 3b17a92aa31b
children 4d4fca0a37f9
(ns clojurecraft.util)

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

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

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