`import sugar let f = (x: int) -> int => x * x let g = proc(x: int): int = x * x let m = (x: int, y: (int) -> int) => y(x) echo f(100) echo g(100) echo m(100,f) echo m(100,(x: int) => x * x) `
Run
`import sugar let f = (x: int) -> int => x * x let g = proc(x: int): int = x * x let m = (x: int, y: (int) -> int) => y(x) echo f(100) echo g(100) echo m(100,f) echo m(100,(x: int) => x * x) `
Run