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

Shorthand for .iter() and .into(<Class>.collect) #76

Open
jonnyboyC opened this issue Dec 6, 2021 · 1 comment
Open

Shorthand for .iter() and .into(<Class>.collect) #76

jonnyboyC opened this issue Dec 6, 2021 · 1 comment

Comments

@jonnyboyC
Copy link
Collaborator

Problem

While working on advent of code 2021 I've noticed there is a quite a bit of boilerplate with both .iter() and .into(<Class>.collect). Essentially converting a container too and from an iterator. I'd like to consider add some sort of sugar make this explicit still but shorter.

let a = [1,2, 3]$.map(|x| x).toList()
@jonnyboyC
Copy link
Collaborator Author

I currently have implemented .list() and .tuple(). I should probably a .hash() method.

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

No branches or pull requests

1 participant