intersperse 1.0.0

Dart native js
Flutter Android iOS web

Put an element between each element in an Iterable.

intersperse #

Travis CI Codecov Pub.dev License Github Stars Twitter Follow GitHub Follow

Put an element between each element of an Iterable.


    final list1 = intersperse(2, <int>[]); // [];
    final list2 = intersperse(2, [0]); // [0];
    final list3 = intersperse(2, [0, 0]); // [0, 2, 0];
    final list1Outer = intersperseOuter(2, <int>[]); // [];
    final list2Outer = intersperseOuter(2, [0]); // [2, 0, 2];
    final list3Outer = intersperseOuter(2, [0, 0]); // [2, 0, 2, 0, 2];

4
likes
100
pub points
74%
popularity

Publisher

modulovalue.com

Put an element between each element in an Iterable.

Homepage

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on intersperse