list_ext 0.1.12

Dart native js
Flutter Android iOS web

Dart extension methods for Iterable and List. You can easily sum, count elements and many more.

example/main.dart

import 'package:list_ext/list_ext.dart';

void main() {
  final list = [1, 2, 5, 1];
  final sum = list.sum();
  print('Sum: $sum');

  final sumSquare = list.sumOf((v) => v * v);
  print('Sum of squares: $sumSquare');

  final count = list.countWhere((v) => v == 1);
  print('Count of 1: $count');
}
3
likes
110
pub points
89%
popularity

Publisher

innim.ru

Dart extension methods for Iterable and List. You can easily sum, count elements and many more.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

collection, quiver

More

Packages that depend on list_ext