April 2017
Intermediate to advanced
316 pages
9h 33m
English
The <|| operator is used to decode an array of values at a specific key into the requested type:
public func <|| <A: Decodable>(json: JSON, keys: [String]) -> Decoded<[A]> where A == A.DecodedType { return flatReduce(keys, initial: json, combine: decodedJSON) >>- Array<A>.decode }
Read now
Unlock full access