Chromium Code Reviews| Index: sdk/lib/collection/list.dart |
| diff --git a/sdk/lib/collection/list.dart b/sdk/lib/collection/list.dart |
| index aab99d884b72366e1060562368835fc9d0efa585..fa1bd5014aeca591ee179baaaf745ab8b666c492 100644 |
| --- a/sdk/lib/collection/list.dart |
| +++ b/sdk/lib/collection/list.dart |
| @@ -45,6 +45,8 @@ abstract class ListMixin<E> implements List<E> { |
| bool get isEmpty => length == 0; |
| + bool get isNotEmpty => !isEmpty; |
| + |
| E get first { |
| if (length == 0) throw new StateError("No elements"); |
| return this[0]; |