def checkforSimpleFunctional(p:Int, q:Int, test : (Int, Int) => Double) = test(p, q)
println(checkforSimpleFunctional(2, 3, (a:Int, b:Int) => a + b))
'Programming Theory > Functional Programming' 카테고리의 다른 글
기본 예제 - Kotlin (0) | 2020.12.05 |
---|
def checkforSimpleFunctional(p:Int, q:Int, test : (Int, Int) => Double) = test(p, q)
println(checkforSimpleFunctional(2, 3, (a:Int, b:Int) => a + b))
기본 예제 - Kotlin (0) | 2020.12.05 |
---|