TermProtocol
public protocol TermProtocol : Hashable, Sendable
A protocol describing the API of a Hylo term.
-
Properties about the representation of
self.Declaration
Swift
var flags: ValueFlags { get } -
init(_:Extension method) Creates an instance with the value of
container.baseor returnsnilif that value has a different type.Declaration
Swift
public init?(_ container: AnyTerm) -
init(_:Extension method) Creates an instance with the value of
container.baseor returnsnilif either that value has a different type orcontainerisnil.Declaration
Swift
public init?(_ container: AnyTerm?) -
subscript(_:Extension method) Returns whether the specified flags are raised on this term.
Declaration
Swift
public subscript(fs: ValueFlags) -> Bool { get }
View on GitHub