summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorfmoko <mokou@posteo.de>2020-09-18 15:23:28 +0200
committerGitHub <noreply@github.com>2020-09-18 15:23:28 +0200
commit0f16463794f86d48fa368b3bd2a5504d5ffe8cbf (patch)
tree1edb5975d0be6ca7296be3c0b48eac51b5f485f5 /info.toml
parent3286c5ec19ea5fb7ded81d047da5f8594108a490 (diff)
parent8ff5fde88edb8f24253d7dc894501473cf701dbc (diff)
Merge pull request #489 from mukundbhudia/iterators1
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml21
1 files changed, 21 insertions, 0 deletions
diff --git a/info.toml b/info.toml
index 2e90f13..28bf24d 100644
--- a/info.toml
+++ b/info.toml
@@ -645,6 +645,27 @@ inside the loop but still in the main thread.
thread-local copy of the numbers."""
[[exercises]]
+name = "iterators1"
+path = "exercises/standard_library_types/iterators1.rs"
+mode = "compile"
+hint = """
+Step 1:
+We need to apply something to the collection `my_fav_fruits` before we start to go through
+it. What could that be? Take a look at the struct definition for a vector for inspiration:
+https://doc.rust-lang.org/std/vec/struct.Vec.html.
+
+
+Step 2 & step 2.1:
+Very similar to the lines above and below. You've got this!
+
+
+Step 3:
+An iterator goes through all elements in a collection, but what if we've run out of
+elements? What should we expect here? If you're stuck, take a look at
+https://doc.rust-lang.org/std/iter/trait.Iterator.html for some ideas.
+"""
+
+[[exercises]]
name = "iterators2"
path = "exercises/standard_library_types/iterators2.rs"
mode = "test"