From 75c60ac1082b5cb5b5c7bfe52119b97f94d1efe2 Mon Sep 17 00:00:00 2001 From: "Kevin J. Lynagh" Date: Mon, 18 Jun 2012 07:49:32 -0700 Subject: [PATCH] Clojure `keys` and `set` fns should be used over `keySet` Java method. (For CLJS compatibility.) --- src/main/clojure/clojure/core/match.clj | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/clojure/clojure/core/match.clj b/src/main/clojure/clojure/core/match.clj index 884ffe8..a40a721 100644 --- a/src/main/clojure/clojure/core/match.clj +++ b/src/main/clojure/clojure/core/match.clj @@ -1033,7 +1033,7 @@ (if only (let [a (with-meta (gensym) {:tag 'java.util.Map})] (cons (guard-pattern (wildcard-pattern) - (set [`(fn [~a] (= (.keySet ~a) #{~@only}))])) + (set [`(fn [~a] (= (set (keys ~a)) #{~@only}))])) ps)) (cons (wildcard-pattern) ps)) ps)] -- 1.7.8