We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef3c2ce + 8dca331 commit 967331cCopy full SHA for 967331c
README.md
@@ -59,7 +59,7 @@ value = 4 # matches first case
59
60
with switch(value) as s:
61
s.case(range(1, 6), lambda: ...)
62
- s.case(range(6, 7), lambda: ...)
+ s.case(range(6, 10), lambda: ...)
63
s.default(lambda: ...)
64
```
65
@@ -81,7 +81,7 @@ You write the following code.
81
switch = {
82
1: method_on_one,
83
2: method_on_two,
84
- 3, method_on_three
+ 3: method_three
85
}
86
87
result = switch.get(value, defult_method_to_run)()
@@ -138,4 +138,4 @@ while True:
138
139
140
Personally, I much prefer to read and write the one above. That's why I wrote this module.
141
-It seems to convey the intent of switch way more than the dict. But either are options.
+It seems to convey the intent of switch way more than the dict. But either are options.
0 commit comments