From 49ae2d3cfb5ede1277a7b5497102640051acd114 Mon Sep 17 00:00:00 2001 From: Noah Kamara Date: Mon, 11 Mar 2024 00:23:11 +0100 Subject: [PATCH] v0.1.0 --- Sources/CompoundPredicate/Predicate.swift | 57 ----------------------- 1 file changed, 57 deletions(-) delete mode 100644 Sources/CompoundPredicate/Predicate.swift 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) -//// ) -//// } -//// } -//}