1
1
Fork 0
AtomicKotlinCourse/Power Tools/Using Operators/Exercise 3/task-info.yaml

28 lines
672 B
YAML

type: edu
files:
- name: src/Task.kt
visible: true
placeholders:
- offset: 126
length: 142
placeholder_text: 'data class N(var n: Int)'
- offset: 283
length: 513
placeholder_text: |-
/*
val rnd = Random(47) // For repeatability
val key = N(11)
val map = mutableMapOf(key to 47)
println(map[key])
key.n++
println(map[key])
val list = List(5) { N(it) }.shuffled(rnd)
println("list: $list")
val set = list.toSortedSet()
println("sorted set (1): $set")
set.min()!!.n += 2
println("sorted set (2): $set")
*/
- name: test/Tests.kt
visible: false