Repository navigation
Commit f418215
authored
Correctly implement the invert function
Fix the invert function to correctly swap keys and values in the object.1 parent c3114b2 commit f418215
1 file changed
Lines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 9 | | |
20 | 10 | | |
21 | | - | |
| 11 | + | |
22 | 12 | | |
23 | 13 | | |
24 | 14 | | |
25 | | - | |
| 15 | + | |
26 | 16 | | |
27 | 17 | | |
28 | 18 | | |
29 | | - | |
| 19 | + | |
30 | 20 | | |
31 | 21 | | |
32 | 22 | | |
| |||
0 commit comments