diff --git a/Sources/CompoundPredicate/Predicate.swift b/Sources/CompoundPredicate/Predicate.swift deleted file mode 100644 index 20d1a0e..0000000 --- a/Sources/CompoundPredicate/Predicate.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// File.swift -// -// -// Created by Noah Kamara on 07.03.24. -// - -import Foundation - -//extension Predicate { -//// /// Recursively traverses itself and returns a copy replacing all occurences of `variable` with `replacement` -//// /// - **if** Self conforms to ``CompoundPredicate/VariableReplacing`` -//// /// - **otherwise** returns a copy of ittself -//// /// - Parameters: -//// /// - variable: a variable that should be replaced -//// /// - replacement: the variable it should be replaced with -//// /// - Returns: a copy replacing all occurences of `variable` with `replacement` -//// func replacing( -//// with replacement: repeat PredicateExpressions.Variable -//// ) -> any StandardPredicateExpression { -//// // guard var expression = expression as? any VariableReplacing else { -//// // print("expression is not variableReplacing", type(of: expression)) -//// // return expression -//// // } -//// var expression = expression -//// -//// func replace( -//// _ variable: PredicateExpressions.Variable, -//// with replacement: PredicateExpressions.Variable -//// ) { -//// expression = expression.replacingVariable(variable, with: replacement) -//// } -//// -//// repeat replace(each variable, with: each replacement) -//// -//// return expression -//// } -// -//// func and(_ other: Predicate) -> Predicate { -//// -//// Self { -//// PredicateExpressions.build_Conjunction( -//// lhs: self.expression.replacingVariable(self.variable, with: $0), -//// rhs: other.expression.replacingVariable(other.variable, with: $0) -//// ) -//// } -//// } -// -//// func or(_ other: Self) -> Self { -//// Self { input in -//// PredicateExpressions.Disjunction( -//// lhs: self.expression.replacingVariable(self.variable, with: input), -//// rhs: other.expression.replacingVariable(other.variable, with: input) -//// ) -//// } -//// } -//}