From 95352b28db0ebe935c7776f9c601729c6e077d0e Mon Sep 17 00:00:00 2001 From: Matthew Davidson Date: Thu, 11 Apr 2024 17:23:45 +0700 Subject: [PATCH] fix: tuple/select-attrs accidentally used local name instead of clojure.core/name --- src/inferenceql/query/tuple.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inferenceql/query/tuple.cljc b/src/inferenceql/query/tuple.cljc index fa0327e..e025e21 100644 --- a/src/inferenceql/query/tuple.cljc +++ b/src/inferenceql/query/tuple.cljc @@ -22,10 +22,10 @@ (map? x)) (defn select-attrs - "Retrives tuple `tup` with only the attributes in `attrs`." + "Retrieves tuple `tup` with only the attributes in `attrs`." [tup attrs] - (let [names (into #{} (map name) attrs)] - (medley/filter-keys (comp names name) + (let [names (into #{} (map clojure.core/name) attrs)] + (medley/filter-keys (comp names clojure.core/name) tup))) (defn ->map