deinstapel / deinstapel/cursive-async-view

From iterator?

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Would be nice if there would be an option to build the AsyncView from an iterator, with optional progress bar of course.

Something like:

```rust
AsyncView::from_iterator(it)
```

with `from_iterator(i: I) where I: IntoIterator, V: View` or something like this?
Or even

```rust
AsyncView::fold_from_iter(it, ListView::new(), |accu, elem| { accu.add_child("", elem); accu });
```

where the closure folds over the `ListView` and `elem` as element from the iterator?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.