Is there in prolog something like 'two or more' (or another option) to make the following shorter ?
rule(foo, [bar,bar]).
rule(foo, [bar,bar,bar]).
rule(foo, [bar,bar,bar,bar]).
rule(foo, [bar,bar,bar,bar,bar]).
you can read it as: if there is a serie of n bars then assign the tag foo