Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xinthink committed Apr 20, 2020
1 parent e019ab3 commit af80acd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ import 'package:collection_ext/iterables.dart';
final diff = [2, 4, 6].foldRight(0, (x, acc) => x - acc);
```

### Nullability

All extension methods of Iterables & Maps are null-safe. For example:

```dart
Iterable itr;
assert(itr.sum() == 0);
Map map;
assert(map.none((k, v) => true) == true);
```

See [nullability tests] for more details.

## Available Modules

- Extensions to [Iterables]
Expand All @@ -70,3 +84,4 @@ I'm working on more useful extensions, PRs are welcome! :beers:🖖
[Iterables]: https://xinthink.github.io/dart_collection_ext/iterables/iterables-library.html
[Maps]: https://xinthink.github.io/dart_collection_ext/maps/maps-library.html
[Ranges]: https://xinthink.github.io/dart_collection_ext/ranges/ranges-library.html
[nullability tests]: https://github.com/xinthink/dart_collection_ext/blob/master/test/nullability_test.dart

0 comments on commit af80acd

Please sign in to comment.