Skip to content

Commit

Permalink
Merge pull request #241 from ZehCnaS34/finder-multiple-clauses
Browse files Browse the repository at this point in the history
Refactor meander.interpreter.epsion/finder
  • Loading branch information
noprompt authored Jun 10, 2023
2 parents 779bfb4 + 05edc34 commit 91c9f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meander/interpreter/epsilon.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@
(finder-from [query f]))
([query f & more-clauses]
(assert (even? (count more-clauses)) "finder expects an even number of arguments")
(finder-from (cons [query f] (partition 2 more-clauses)))))
(finder-from (cons query (cons f more-clauses)))))

(defn searcher-from
"Takes a sequence of [query f] pairs and returns a function which
Expand Down

0 comments on commit 91c9f38

Please sign in to comment.