Functions
To declare function you should use fun
keyword:
You can place private
before fun
keyword to make function private so you can't use that function from other module.
Function type
If you need to declare function type you need use this syntax:
Example:
Last updated
Was this helpful?