Klitos Kyriacou
10/03/2025, 11:00 AMfun foo(n: Int): Int {
require(n >= 1 && n <= 3)
return when (n) {
1 -> 10
2 -> 20
3 -> 30
}
}Huib Donkers
10/03/2025, 11:05 AMhfhbd
10/03/2025, 11:20 AMJack Boswell
10/03/2025, 11:42 AMephemient
10/03/2025, 3:26 PMephemient
10/03/2025, 3:27 PMephemient
10/03/2025, 3:29 PMInt as an enumeration of …, -1, 0, 1, 2, … so it won't work with that. probably needs a more efficient representation at a minimumJose Fort
10/06/2025, 2:57 PMephemient
10/06/2025, 5:25 PMJose Fort
10/06/2025, 5:27 PMephemient
10/06/2025, 5:29 PM