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(as): Add static as convenience methods to wrap values as Async/Iterables #154

Merged
merged 1 commit into from Nov 16, 2017

Conversation

trxcllnt
Copy link
Member

This PR introduces Iterable.as() and AsyncIterable.as() convenience methods to wrap values as Iterables/AsyncIterables. as is a hybrid of from and of, except that when handed a string, it doesn't iterate the chars from the string (like from would), and instead works like of. This PR also reverts #117, so that Iterable.from behaves like the built-in Array.from again.

@trxcllnt trxcllnt changed the title feat(as): Add static as convenience methods to wrap values as Async/Iterables feat(as): Add static as convenience methods to wrap values as Async/Iterables Nov 15, 2017
@mattpodwysocki
Copy link
Contributor

LGTM

@mattpodwysocki mattpodwysocki merged commit 79a14c5 into master Nov 16, 2017
@mattpodwysocki mattpodwysocki deleted the iterable-as branch November 16, 2017 02:40
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.

None yet

2 participants