Higher-order functions take other functions as arguments. The fun part: you must not inline the call unless the target is constant - otherwise you break semantics (and your VM). #kotlin
24 reposts409 likes
Higher-order functions take other functions as arguments. The fun part: you must not inline the call unless the target is constant - otherwise you break semantics (and your VM). #kotlin
24 reposts409 likes
Usually functions' orders aren't counted so much as the functions' types are given ranks. Things largely only count to 2 before the algorithms involved generalise to arbitrary rank („rank N types“), though the definition can produce numbers for any type. There's more structure than just numbers too.