trogon / ketupa-predicates

Parsing library to evaluate predicates
MIT License
0 stars 0 forks source link

Multiple arguments for OR and AND predicates #22

Closed mklemarczyk closed 2 years ago

mklemarczyk commented 2 years ago

It requires to write a lot when predicate contains many optional conditions, it would be great to put it in single predicate instead.

Current implementation: {OR, {OR, {=, $a, 3}, {=, $b, SuperUser}}, {OR, {=, $d, 2021-02}, {=, $e, 41}}}

Desired implementation: {OR, {=, $a, 3}, {=, $b, SuperUser}, {=, $d, 2021-02}, {=, $e, 41}}