Commit 284a819
committed
Use mutable collections and remove explicit type declaration for default values (Kotlin)
- Changed `listOf` to `mutableListOf` and `mapOf` to `mutableMapOf` for default array and hash values to allow mutation.
- Removed explicit type declaration (`val ans: <type>`) in favor of type inference with `var`.1 parent 8e7e394 commit 284a819
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
0 commit comments