fpdart icon indicating copy to clipboard operation
fpdart copied to clipboard

map for Strings

Open cgarciae opened this issue 10 years ago • 0 comments

How to iterate over strings? Since Strings are not iterable, functions like _.map don't work. I was thinking maybe this library could define a new class like

class CharList with IterableMixin<String>
{
    List<String> charList;

    Char (String str)
    {
        charList = str.split("");
    }

    //Implement Iterable Interface
}

so you can get consistent iterables from Strings.

cgarciae avatar Nov 03 '14 07:11 cgarciae