Tutorial by Topics: functions

Dart is a true object-oriented language, so even functions are objects and have a type, Function. This means that functions can be assigned to variables or passed as arguments to other functions. You can also call an instance of a Dart class as if it were a function.
f(n) = ... function f(n) ... end n::Type x -> ... f(n) do ... end Aside from generic functions (which are most common), there are also built-in functions. Such functions include is, isa, typeof, throw, and similar functions. Built-in functions are typically implemented in C instead ...
A function in the *apply family is an abstraction of a for loop. Compared with the for loops *apply functions have the following advantages: Require less code to write. Doesn't have an iteration counter. Doesn't use temporary variables to store intermediate results. However for loops are m...
CREATE [OR REPLACE] FUNCTION function_name [ (parameter [,parameter]) ] RETURN return_datatype IS | AS [declaration_section] BEGIN executable_section [EXCEPTION exception_section] END [function_name];
AutoHotkey used to heavily rely on labels until version 1.1.20. It's reliance on labels had very serious disadvantages. The main one being that labels usually execute in the global scope meaning that any variable defined within a label will be globally available. This sounds great until you realiz...
List of string functions (Alphabetically sorted): Ascii Char Charindex Concat Difference Format Left Len Lower Ltrim Nchar Patindex Quotename Replace Replicate Reverse Right Rtrim Soundex Space ...
AutoHotkey comes with many built-in functions and variables which can be used anywhere inside a script. For a full list including explanations, see: List of built-in variables List of built-in functions
Higher Order Functions are functions that take functions as parameters and/or return functions as their return values.
function func_name($parameterName1, $parameterName2) { code_to_run(); } function func_name($optionalParameter = default_value) { code_to_run(); } function func_name(type_name $parameterName) { code_to_run(); } function &returns_by_reference() { code_to_run(); } function func_name(&$ref...
contrast(<reference-color>, <output-for-light-refcolor>, <output-for-dark-refcolor>, <threshold>) lighten(<reference-color>, <amount>, <method>) darken(<reference-color>, <amount>, <method>) ParameterDetailsreference-colorThe colo...
@function function-name(parameter) { /* Function body */ }

Page 3 of 6