iterators4 solution

This commit is contained in:
mo8it
2024-06-28 15:31:15 +02:00
parent 56a9197f55
commit 2af437fd90
3 changed files with 80 additions and 10 deletions
+2 -2
View File
@@ -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"