News for hackers. Stuff that matters.
Re:Learn Dart in 15 Minutes by munificent on Wednesday August 20, 2014 @03:01PM (#8203920)
It's actually important to prefer .isNotEmpty over .length here. In some iterables (think generators, or sequences transformed by higher-order functions), calculating the length requires traversing the entire sequence where .isNotEmpty can stop after finding a single item.

There are no comments on this comment yet.