https://kotlinlang.org logo
#exposed
Title
# exposed
j

Joel

09/15/2020, 10:36 PM
@tapac quick suggestion: Case and
CaseWhen
could have a common interface declaring
fun When(...)
which would make fold operations on arbitrary collections trivial ex.
listOf(1, 2, 3).fold(case()) { acc, num -> acc.When(FooTable.barColumn eq num, num * 2) }.Else(Int.MAX_VALUE)
2 Views