From 2529378725dda84bbd5c0451c9757d4d44c1c2c0 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Fri, 12 Aug 2016 16:29:44 -0700 Subject: [PATCH] Rewrite > (update-txInstant db*))))) (defn- lookup-ref? [x] - "Return true if `x` is like [:attr value]." + "Return `x` if `x` is like [:attr value], false otherwise." (and (sequential? x) (= (count x) 2) (or (keyword? (first x)) - (integer? (first x))))) + (integer? (first x))) + x)) (defn > - (vec (for [[op & entity] (:entities report)] - (into [op] (for [field entity] - (if (lookup-ref? field) - (first (