Skip to content

Use mutable* and remove explicit type declaration for default values (Kotlin)#2172

Merged
vtm9 merged 1 commit into
hexlet-codebattle:masterfrom
GfxMod:feature/kotlin_mutable_defaults
May 27, 2025
Merged

Use mutable* and remove explicit type declaration for default values (Kotlin)#2172
vtm9 merged 1 commit into
hexlet-codebattle:masterfrom
GfxMod:feature/kotlin_mutable_defaults

Conversation

@GfxMod
Copy link
Copy Markdown
Contributor

@GfxMod GfxMod commented May 27, 2025

  • 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.

…ult 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`.
@vtm9 vtm9 merged commit cd658a2 into hexlet-codebattle:master May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants