mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 09:13:30 +02:00
iterators4 solution
This commit is contained in:
@@ -942,10 +942,10 @@ dir = "18_iterators"
|
||||
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
|
||||
Rust, you can take another functional approach, computing the factorial
|
||||
elegantly with ranges and iterators.
|
||||
|
||||
Hint 2: Check out the `fold` and `rfold` methods!"""
|
||||
Check out the `fold` and `rfold` methods!"""
|
||||
|
||||
[[exercises]]
|
||||
name = "iterators5"
|
||||
|
||||
Reference in New Issue
Block a user