Skip to content

Support Iterable on NSArray #1474

Closed
@stuartmorgan-g

Description

@stuartmorgan-g

This is related to #1444, but broader in scope.

I wanted to convert some code that was using method channels and did a map(_helperFunctionToConvertElements), and the corresponding code with FFI was a very old-school C-ish style loop-indexes-from-0-to-length-minus-one to manually both convert each element of the array, but also convert the NSArray to a List. If NSArray supported Iterable, then it would have been simple and idiomatic to do the conversion to FFI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions