use pumpkin_core::constraints::Constraint;
use pumpkin_core::proof::ConstraintTag;
use pumpkin_core::variables::IntegerVariable;
use pumpkin_propagators::element::ElementArgs;
pub fn element<ElementVar: IntegerVariable + 'static>(
index: impl IntegerVariable + 'static,
array: impl IntoIterator<Item = ElementVar>,
rhs: impl IntegerVariable + 'static,
constraint_tag: ConstraintTag,
) -> impl Constraint {
ElementArgs {
array: array.into_iter().collect(),
index,
rhs,
constraint_tag,
}
}