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

expand on Result, Option, Iterator #185

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

tgolsson
Copy link
Contributor

@tgolsson tgolsson commented Dec 1, 2020

Some missing ones I found useful!

  • Result::{expect, unwrap, map, and_then}
  • Option::{expect, unwrap, map, and_then}
  • Iterator::{sum, product, fold}
  • Tests

* Result::{expect, unwrap, map, and_then}
* Option::{expect, unwrap, map, and_then}
* Iterator::{sum, product, fold}
* Tests
@udoprog udoprog added the enhancement New feature or request label Dec 1, 2020
@udoprog
Copy link
Collaborator

udoprog commented Dec 1, 2020

Thanks! Interesting approach inspecting the first value in the iterator. Not sure that's where we want to end up, but it's certainly better than type-bespoke functions (e.g. sum_int) for now.

@udoprog udoprog merged commit 498d5cf into rune-rs:main Dec 1, 2020
@udoprog udoprog added the changelog Issue has been added to the changelog label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Issue has been added to the changelog enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants