Array

extension Array: HADataDecodable where Element: HADataDecodable
extension Array: HADecodeTransformable where Element: HADecodeTransformable

Available where Element: HADataDecodable

  • Construct an array of decodable elements

    Throws

    When unable to decode, e.g. the data isn’t an array

    Declaration

    Swift

    public init(data: HAData) throws

    Parameters

    data

    The data to decode

Available where Element: HADecodeTransformable

  • Transforms any array of transformable items

    Throws

    If the underlying decode throws

    Declaration

    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