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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents