Hi, what is the value of `x` here? ```listOf<In...
# getting-started
s
Hi, what is the value of
x
here?
Copy code
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