Basic function definition
return_type function_name( parameter list ) { body of the function }A basic function definition consists of a function header and a function body. Here are all the parts of a function:
return_type function_name( parameter list ) { body of the function }A basic function definition consists of a function header and a function body. Here are all the parts of a function:
alias new_name = existing_name;The following is the older syntax, just in case you refer some older format examples. Its is strongly discouraged the use of this.