From ceb8a2aa6386ed31116a86681544b6c5822b16b9 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 11 Apr 2022 13:08:40 -0400 Subject: [PATCH] Make test for keyword more robust --- src/ludus/interpreter.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ludus/interpreter.clj b/src/ludus/interpreter.clj index 5b17a6a..27c2afc 100644 --- a/src/ludus/interpreter.clj +++ b/src/ludus/interpreter.clj @@ -171,7 +171,7 @@ (throw (ex-info "Match Error: No match found" {:fn-name (:name lfn)}))))) - (= clojure.lang.Keyword (type lfn)) + (keyword? lfn) (if (= 2 (count tuple)) (let [target (second tuple) kw lfn] (if (::data/struct target)