Skip to content
/ dart-zip Public

A simple zip function for dart with same behavior as the python implementation

Notifications You must be signed in to change notification settings

tusj/dart-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart-zip

A simple zip function for dart with same behavior as the python implementation.

var a = [1, 2];
var b = [3, 4, 5];
var res = [[1, 3], [2, 4]];
print(zip([a, b]));

outputs

((1, 3), (2, 4))

Zip functionality can be achieved with package collection, but you need to instantiate a new object, which is unnecessary for a two-line function.

About

A simple zip function for dart with same behavior as the python implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages