Filtering a list of integers
suggest change[-1, 0, 2, 4, 7, 9].where((x) => x > 2).toList() evaluates to [4, 7, 9]. where alone returns an Iterable, not a List.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents