Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow zip method different type #77

Merged
merged 2 commits into from
May 13, 2024

Conversation

narumincho
Copy link
Contributor

final countries = ['France', 'Germany', 'Brazil', 'Japan'].lock;

final Iterable<(String, int)> zipped = countries.zip([10, 20, 30, 40]);
expect(
  zipped,
  IList([
    ('France', 10),
    ('Germany', 20),
    ('Brazil', 30),
    ('Japan', 40),
  ]),
);

Examples of zip functions in other languages

@marcglasberg marcglasberg merged commit 1574568 into marcglasberg:master May 13, 2024
1 check passed
@marcglasberg
Copy link
Owner

@narumincho See version 10.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants