Array
extension Array: HADataDecodable where Element: HADataDecodable
extension Array: HADecodeTransformable where Element: HADecodeTransformable
-
Construct an array of decodable elements
Throws
When unable to decode, e.g. the data isn’t an arrayDeclaration
Swift
public init(data: HAData) throwsParameters
dataThe data to decode
-
Transforms any array of transformable items
Throws
If the underlying decode throwsDeclaration
Swift
public static func decode(unknown value: Any) throws -> `Self`?Parameters
valueThe array of values to convert
Return Value
The array of values converted, compacted to remove any failures
View on GitHub