-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QP, lib] Allow multiple arguments to
:contains
, :starts-with
, etc.
These string matching clauses only allowed two arguments previously. Typically `[:contains field x]` to match a field against a literal. This adds similar desugaring for `:contains`, `:does-not-contain`, `:starts-with` and `:ends-with` that is currently done for multi-argument `:=` and `:!=`: ```clojure [:contains field x y z] ;; -> [:or [:contains field x] [:contains field y] [:contains field z]] [:does-not-contain field x y z] ;; -> [:and [:does-not-contain field x] [:does-not-contain field y] [:does-not-contain field z]] ```
- Loading branch information
1 parent
40b17c9
commit f17148b
Showing
5 changed files
with
85 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters