RewritingTerm

protocol RewritingTerm : Collection, Equatable, Sendable where Self.Element : Hashable, Self.Element : Sendable, Self.Index == Int, Self.SubSequence : Sendable

A term in a rewriting system.

  • Creates a term with the given symbols.

    Declaration

    Swift

    init<S>(_ s: S) where S : Sequence, Self.Element == S.Element
  • Returns a copy of self in which occurrences of s have been replaced by t.

    Declaration

    Swift

    func substituting(_ s: Self, for t: Self) -> Self
  • Returns u concatenated with v.

    Declaration

    Swift

    static func + (u: Self, v: Self) -> Self
  • Returns u concatenated with v.

    Declaration

    Swift

    static func + <S>(u: Self, v: S) -> Self where S : Sequence, Self.Element == S.Element
  • Returns u concatenated with v.

    Declaration

    Swift

    static func + <S>(u: S, v: Self) -> Self where S : Sequence, Self.Element == S.Element