Right now, if you pass a single-element vector to and_many, like:
s.and_many(vec![s.true_()]);
It fails with:
thread '<unnamed>' panicked at 'assertion failed: args.len() >= 3', /Users/avh/.cargo/git/checkouts/easy-smt-fe5539f05befcda8/18df991/src/context.rs:631:5
A common pattern is to dynamically build a list of expressions then call one of these variadic helpers, so it would be nice to not have to special case on a single element each time. The library could instead return the single value (at least for the helpers where that is correct).
Right now, if you pass a single-element vector to
and_many
, like:It fails with:
A common pattern is to dynamically build a list of expressions then call one of these variadic helpers, so it would be nice to not have to special case on a single element each time. The library could instead return the single value (at least for the helpers where that is correct).