79790834

Date: 2025-10-15 05:58:56
Score: 1.5
Natty:
Report link
fun composer( a: () -> Int, b: () -> Int) -> Int {
    return a() + b()
}



val first: (Int, Int) -> Int = { a, b -> a + b }
val second: (Int, Int) -> Int = { a, b -> a - b }

var x = composer( { first(1,2)}, {second(3,4)})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Guest