Static Methodpointfreeco.swift-case-paths 1.6.1CasePaths->CasePathsCore
constant(_:)
Returns a case path that always successfully extracts the given constant value.
This declaration is deprecated.
static func constant(_ value: @autoclosure @escaping () -> Value) -> AnyCasePath<Root, Value>
Parameters
- value
A constant value.
Returns
A case path from ()
to value
.