You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/raindrops/.approaches/introduction.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Introduction
2
2
3
-
## Pattern matching
3
+
## Check every possibility
4
4
5
-
The output of the `convert` method depends on three conditions.
6
-
We can be very explicit with the solution and match all the possible patterns.
5
+
The output of the `convert` method depends on three conditions which can be either true or false.
6
+
This gives only eight possibilities and we can check them all.
7
7
8
8
```elixir
9
9
defconvert(number) do
@@ -20,7 +20,7 @@ def convert(number) do
20
20
end
21
21
```
22
22
23
-
We can use a few Elixir features to do more or less the same and we explore them in the [pattern matching approach][pattern-matching-approach].
23
+
We can use a few Elixir features to do more or less the same and we explore them in the [check every possibility approach][check-every-possibility-approach].
24
24
25
25
## Step by step
26
26
@@ -45,5 +45,5 @@ end
45
45
46
46
Let's have a look at a few variations of this [step by step approach][step-by-step-approach].
0 commit comments