NFun
NFun copied to clipboard
Type aliases
type user: { name: text, age:int}
type arraa: [int]
type tupka: (int, int, text)
type choice: int | real | text
type funka: fun(int,int)->text
f(x:choice)->user = {...}
m:arraa = [1,2,3]
x:funka = ...
x(1,2).print()