list_ext 0.1.12 copy "list_ext: ^0.1.12" to clipboard
list_ext: ^0.1.12 copied to clipboard

outdated

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');
}
39
likes
0
pub points
88%
popularity

Publisher

verified publisherinnim.ru

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, quiver

More

Packages that depend on list_ext