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) throws
Parameters
data
The 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
value
The array of values to convert
Return Value
The array of values converted, compacted to remove any failures