Skip to content

take(_:check:)

mattpolzin edited this page Oct 1, 2020 · 2 revisions

take(_:check:)

Create a validation or predicate function from a KeyPath and a function operating on that value.

public func take<T, U>(_ path: KeyPath<T, U>, check: @escaping (U) -> Bool) -> (ValidationContext<T>) -> Bool

take(_:check:)

Create a validation or predicate function from a KeyPath and a function operating on that value.

public func take<T, U>(_ path: KeyPath<ValidationContext<T>, U>, check: @escaping (U) -> Bool) -> (ValidationContext<T>) -> Bool
Types
Protocols
Global Functions
Extensions
Clone this wiki locally