jtonic
04/06/2018, 9:11 AMfun sum(a: Int, b: Int) = a + b
fun format(a: Int) = "Result: $a"
fun printResult(result: String) = println(result)
(????) pipe ::sum pipe ::format pipe ::printResult // how can I pass the value (???) to this pipe, in a FP way w/o modifying the sum signature
4 pipe ::sum.partially2(3) pipe ::format pipe ::printResult //this is fine
Thank you in advance for your help/explanation