We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e7e394 + 284a819 commit cd658a2Copy full SHA for cd658a2
1 file changed
services/app/apps/runner/lib/runner/languages.ex
@@ -327,7 +327,7 @@ defmodule Runner.Languages do
327
import kotlin.collections.*
328
329
fun solution(<%= arguments %>):<%= expected %> {
330
- val ans: <%= expected %> = <%= default_value %>
+ var ans = <%= default_value %>
331
return ans
332
}
333
// <%= comment %>
@@ -337,9 +337,9 @@ defmodule Runner.Languages do
337
"integer" => "0",
338
"float" => "0.1",
339
"string" => "\"value\"",
340
- "array" => "listOf(<%= value %>)",
+ "array" => "mutableListOf(<%= value %>)",
341
"boolean" => "true",
342
- "hash" => "mapOf(\"key\" to <%= value %>)"
+ "hash" => "mutableMapOf(\"key\" to <%= value %>)"
343
},
344
expected_template: " <%= type %>",
345
types: %{
0 commit comments