diff options
| author | mokou <mokou@fastmail.com> | 2022-07-14 18:29:09 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-14 18:29:09 +0200 |
| commit | 20024d40c5e121202f283b420d7da1deecf4ebc0 (patch) | |
| tree | b49d55c749bf95c880f2e960125ccdc641b094ee /info.toml | |
| parent | 251d0dda345e6b3d067232a32db7afad098c8522 (diff) | |
feat(iterators): update hint comments
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -802,7 +802,8 @@ case is a vector of integers and the failure case is a DivisionError. The list_of_results function needs to return a vector of results. See https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect for how -the `FromIterator` trait is used in `collect()`.""" +the `FromIterator` trait is used in `collect()`. This trait is REALLY powerful! It +can make the solution to this exercise infinitely easier.""" [[exercises]] name = "iterators4" @@ -812,7 +813,9 @@ hint = """ In an imperative language, you might write a for loop that updates a mutable variable. Or, you might write code utilizing recursion and a match clause. In Rust you can take another functional -approach, computing the factorial elegantly with ranges and iterators.""" +approach, computing the factorial elegantly with ranges and iterators. + +Hint 2: Check out the `fold` and `rfold` methods!""" [[exercises]] name = "iterators5" |
