Joel
09/15/2020, 10:36 PMCaseWhen
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)