localTuples clojure implementation