Skip to content

take(__check_)

mattpolzin edited this page Jun 11, 2021 · 1 revision

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