Comments (2)
I am a bit reluctant to add many methods for fallible iterators because it seems to open the door for many many cases.
However, I reckon that this can not be easily written with Itertools::process_results
? Something like that maybe
iter.process_results(|t_it| t_it.map(try_flat_map).process_results(|u_it| ...))??
You have an iterator of results then you map the "ok" values to another iterators of results, then this is flattened, am I right?
It seems to do a lot.
Do you have an usage example for this?
from itertools.
process_results
- I've never heard of it, I'll experiment with it, thanks! as for my use case, I needed something like this for recursively iterating a tree of elements and extracting each child is fallible
from itertools.
Related Issues (20)
- `Itertools::dedup_by[_key]` vs `Vec`
- Merge `MultiPeek` and `PeekNth` HOT 1
- Feature request: `try_collect_vec()` HOT 3
- feature request: split_vec() HOT 1
- Itertools 0.13.0 breaks strum derive macros if both are in scope at the same time. HOT 8
- get (new range iterator) breaks strum HOT 2
- How does tree_reduce achieve O(ln(n)) operations? HOT 10
- Implement `DoubleEndedIterator` for `FilterOk` HOT 3
- Do we need a `rfind_map`? HOT 5
- `.try_collect()` for `Iterator<Option>` HOT 7
- `maybe_` for `cmp`, `partial_cmp`, `eq`, `ne`, `lt`, `le`, `gt`, `ge` HOT 2
- Add single-element tuple for `collect_tuple` HOT 3
- Feature request: Tracked adapter HOT 7
- product with repeat HOT 1
- Increase MSRV to 1.63 HOT 5
- Add `fn zip_longest` HOT 1
- Add comm iterator (inspired by Unix comm command)? HOT 9
- split iterator in two? HOT 6
- izip! is just wrong HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itertools.