Lipi Reference Lipi

Keywords

func

This keyword is used to define a function. Functions help organize reusable logic in scripts, making them cleaner and more efficient.

Syntax

                func <function_name>(<data_type> <param_name> [= <default_value>], ...) {
	<function_body>
}
		
func <function_name>(<data_type> <param_name> [= <default_value>], ...) => <expression>