Functions
suggest changeSyntax
- fun Name(Params) = …
- fun Name(Params) {…}
- fun Name(Params): Type {…}
- fun <Type Argument> Name(Params): Type {…}
- inline fun Name(Params): Type {…}
- { ArgName: ArgType -> … }
- { ArgName -> … }
- { ArgNames -> … }
- { (ArgName: ArgType): Type -> … }
Parameters
| Parameter | Details |
|---|---|
| Name | Name of the function |
| Params | Values given to the function, with a name and a type: Name: Type |
| Type | Return type of the function |
| Type Argument | Type parameter used in generic programming (not necessarily the return type) |
| ArgName | Name of a value given to the function |
| ArgType | Type specifier for ArgName |
| ArgNames | List of ArgName values separated by commas |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents