sasxa
05/30/2019, 5:36 PMx
here?
listOf<Int>(1).reduceRight { x, y -> x + y }
listOf<Int>(1).reduceRight { x, y -> x }
listOf<Int>(1).reduceRight { x, y -> y }
All of these evaluate to 1
in REPL, I want to know what happens when type is something other then `Int`(say some lambda) and I reduce over list with one element