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 type: Name
:
Type
Type|Return type of the function Type Argument|Type parameter used in generic programming (not necessarily return type) ArgName|Name of value given to the function ArgType|Type specifier for ArgName ArgNames|List of ArgName separated by commas
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents