From 9febf95f834adc59b2da7310043b7de15ee11ae2 Mon Sep 17 00:00:00 2001 From: Varpie Date: Mon, 8 Jul 2024 23:13:25 +0200 Subject: [PATCH 1/2] Fix code example --- exercises/concept/gotta-snatch-em-all/.docs/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/gotta-snatch-em-all/.docs/instructions.md b/exercises/concept/gotta-snatch-em-all/.docs/instructions.md index e6171714..872a71f1 100644 --- a/exercises/concept/gotta-snatch-em-all/.docs/instructions.md +++ b/exercises/concept/gotta-snatch-em-all/.docs/instructions.md @@ -22,7 +22,7 @@ Once you have a collection, it takes a life of its own and must grow. Implement `add_card`, which takes a card and a collection, and returns a tuple with two values: a `Bool` that indicates if the card was already in the collection, and the collection with the card added. ```gleam -add_card("Scientuna" set.from_list(["Newthree"])) +add_card(set.from_list(["Newthree"]), "Scientuna") // -> #(False, set.from_list(["Newthree", "Scientuna"])) ``` From eff53f88b34a65ab29269dc146a54fbc64d2b266 Mon Sep 17 00:00:00 2001 From: Varpie Date: Tue, 9 Jul 2024 00:01:57 +0200 Subject: [PATCH 2/2] Add missing link --- exercises/concept/gotta-snatch-em-all/.docs/hints.md | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/concept/gotta-snatch-em-all/.docs/hints.md b/exercises/concept/gotta-snatch-em-all/.docs/hints.md index 54afe538..ad9c081d 100644 --- a/exercises/concept/gotta-snatch-em-all/.docs/hints.md +++ b/exercises/concept/gotta-snatch-em-all/.docs/hints.md @@ -53,4 +53,5 @@ [filter]: https://hexdocs.pm/gleam_stdlib/gleam/set.html#filter [new]: https://hexdocs.pm/gleam_stdlib/gleam/set.html#new [union]: https://hexdocs.pm/gleam_stdlib/gleam/set.html#union +[size]: https://hexdocs.pm/gleam_stdlib/gleam/set.html#size [intersection]: https://hexdocs.pm/gleam_stdlib/gleam/set.html#intersection