Support empty n-aries

This commit is contained in:
2020-04-08 12:09:27 +02:00
parent 51cbdb313f
commit 9a8013f1cb
2 changed files with 57 additions and 45 deletions

View File

@@ -486,8 +486,6 @@ impl Formula
{
pub fn and(arguments: Formulas) -> Self
{
assert!(!arguments.is_empty());
Self::And(arguments)
}
@@ -537,8 +535,6 @@ impl Formula
pub fn if_and_only_if(arguments: Formulas) -> Self
{
assert!(!arguments.is_empty());
Self::IfAndOnlyIf(arguments)
}
@@ -570,8 +566,6 @@ impl Formula
pub fn or(arguments: Formulas) -> Self
{
assert!(!arguments.is_empty());
Self::Or(arguments)
}