Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elm Analyzer comment for concept exercise gotta-snatch-em-all #2297

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# boringCards use fold

The function `boringCards` can be elegantly written with a `List.foldr` (or `List.foldl`).
Try it out!
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# totalCards use fold

The function `totalCards` can be elegantly written with a `List.foldr` (or `List.foldl`).
Try it out!
3 changes: 3 additions & 0 deletions analyzer-comments/elm/gotta-snatch-em-all/use_diff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use diff

For the purpose of learning about the `Set` module, define `extraCards` with `Set.diff`, the most suitable function for the job.
3 changes: 3 additions & 0 deletions analyzer-comments/elm/gotta-snatch-em-all/use_intersect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use intersect

For the purpose of learning about the `Set` module, define `boringCards` with `Set.intersect`, the most suitable function for the job.
3 changes: 3 additions & 0 deletions analyzer-comments/elm/gotta-snatch-em-all/use_partition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use partition

For the purpose of learning about the `Set` module, define `splitShinyCards` with `Set.partition`, the most suitable function for the job.
3 changes: 3 additions & 0 deletions analyzer-comments/elm/gotta-snatch-em-all/use_set.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use set

For the purpose of learning about the `Set` module, define `removeDuplicates` exclusively with `Set` functions.
3 changes: 3 additions & 0 deletions analyzer-comments/elm/gotta-snatch-em-all/use_singleton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use singleton

For the purpose of learning about the `Set` module, define `newCollection` with `Set.singleton`, the most suitable function for the job.
3 changes: 3 additions & 0 deletions analyzer-comments/elm/gotta-snatch-em-all/use_union.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use union

For the purpose of learning about the `Set` module, define `totalCards` with `Set.union`, the most suitable function for the job.
Loading