intersperse 1.1.1-dev.1 copy "intersperse: ^1.1.1-dev.1" to clipboard
intersperse: ^1.1.1-dev.1 copied to clipboard

outdated

Insert an element between each element of an Iterable or List.

intersperse #

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

Insert an element between each element of an Iterable or List.

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];

final Iterable<int> extension = [1, 2].intersperse(-1);
final Iterable<int> extensionOuter = [1, 2].intersperseOuter(-1);
  
45
likes
0
pub points
94%
popularity

Publisher

verified publishermodulovalue.com

Insert an element between each element of an Iterable or List.

Homepage

License

unknown (license)

More

Packages that depend on intersperse