import sugar let f = (x: int) -> int => x * x let hF = (x: int, y: (int) -> int) => y(x) + 1 echo f(1000) echo hF(1000, f) echo hF(1000, (x: int) => x * x * x) echo hF(1000, (x: int) => hF(100, f) * x)Run
import sugar let f = (x: int) -> int => x * x let hF = (x: int, y: (int) -> int) => y(x) + 1 echo f(1000) echo hF(1000, f) echo hF(1000, (x: int) => x * x * x) echo hF(1000, (x: int) => hF(100, f) * x)