Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

intersperse

extra_pedantic on pub.dev 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];

About

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

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.