From 84a4974d59df905a7db6f2d64e895052f281799b Mon Sep 17 00:00:00 2001 From: Jeremie Gillet Date: Sun, 29 Oct 2023 21:37:35 +0900 Subject: [PATCH 1/2] Add Elm Analyzer comment for concept exercise `valentines-day` --- analyzer-comments/elm/valentines-day/use_case.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 analyzer-comments/elm/valentines-day/use_case.md diff --git a/analyzer-comments/elm/valentines-day/use_case.md b/analyzer-comments/elm/valentines-day/use_case.md new file mode 100644 index 000000000..af6f81c97 --- /dev/null +++ b/analyzer-comments/elm/valentines-day/use_case.md @@ -0,0 +1,6 @@ +# use case + +Even though the exercise can be solved in other ways, the preferred way to work with custom types is with [pattern matching][pattern-matching]. +For the sake of learning this technique, use a `case` statement in your solution. + +[pattern-matching]: https://guide.elm-lang.org/types/pattern_matching.html From aee98080896c5c20c5b8d302aba1bbe1d0db43db Mon Sep 17 00:00:00 2001 From: Jeremie Gillet Date: Tue, 31 Oct 2023 10:58:57 +0900 Subject: [PATCH 2/2] use case statement --- .../elm/valentines-day/{use_case.md => use_case_statement.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename analyzer-comments/elm/valentines-day/{use_case.md => use_case_statement.md} (93%) diff --git a/analyzer-comments/elm/valentines-day/use_case.md b/analyzer-comments/elm/valentines-day/use_case_statement.md similarity index 93% rename from analyzer-comments/elm/valentines-day/use_case.md rename to analyzer-comments/elm/valentines-day/use_case_statement.md index af6f81c97..d7fc1df58 100644 --- a/analyzer-comments/elm/valentines-day/use_case.md +++ b/analyzer-comments/elm/valentines-day/use_case_statement.md @@ -1,4 +1,4 @@ -# use case +# use case statement Even though the exercise can be solved in other ways, the preferred way to work with custom types is with [pattern matching][pattern-matching]. For the sake of learning this technique, use a `case` statement in your solution.