rubysolo/dentaku

Feature request: Support empty array literal

kapcod opened this issue · 0 comments

Hello. My case is to check if array intersection is empty or non-empty I wanted to write it like this:

Dentaku!("(ar & {1,2,3}) != {}", ar: [1,5,6])

This does not work and simple Dentaku!('{}') raises "Invalid statement".
For now I'll add a function to work around it but it will look like this:

Dentaku!("not(empty(ar & {1,2,3}))", ar: [1,5,6])

and it's much less readable than the first version.