Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions | Variables

Adaptive Function to_string<list> More...

Functions

const afw_value_tafw_function_execute_and (afw_function_execute_t *x)
 Adaptive Function and More...
 
const afw_value_tafw_function_execute_n_of (afw_function_execute_t *x)
 Adaptive Function n_of More...
 
const afw_value_tafw_function_execute_not (afw_function_execute_t *x)
 Adaptive Function not More...
 
const afw_value_tafw_function_execute_or (afw_function_execute_t *x)
 Adaptive Function or More...
 

Variables

 afw_function_definition_and
 Function definition and.
 
 afw_function_definition_n_of
 Function definition n_of.
 
 afw_function_definition_not
 Function definition not.
 
 afw_function_definition_or
 Function definition or.
 

Detailed Description

Adaptive Function to_string<list>

Parameters
xfunction execute parameter.

Converts list value to string. For list values, the to_string() value for each entry is returned separated with commas.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function to_string<list>(
value: list
): string;

Parameters:

value - (list) A list value.

Returns:

(string) The string representation of the value.

Implemented by afw_function_execute_convert()


logical adaptive functions.

Function Documentation

◆ afw_function_execute_and()

const afw_value_t* afw_function_execute_and ( afw_function_execute_t x)

Adaptive Function and

Parameters
xfunction execute parameter.

Evaluates 0 or more boolean conditions returning boolean true if there are no conditions and boolean false if any condition evaluate to false. All conditions after the first false remain unevaluated.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function and(
...conditions: (list of boolean)
): boolean;

Parameters:

conditions - (0 or more boolean)

Returns:

(boolean)

Definition at line 49 of file afw_function_logical.c.

◆ afw_function_execute_n_of()

const afw_value_t* afw_function_execute_n_of ( afw_function_execute_t x)

Adaptive Function n_of

Parameters
xfunction execute parameter.

integer n specifies the number of boolean conditions that follow that must evaluate to true for boolean true to be returned. If n is 0, true is returned. Once n conditions evaluate to true, true is returned and the remaining conditions remain unevaluated.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function n_of(
n: integer,
...conditions: (list of boolean)
): boolean;

Parameters:

n - (integer)

conditions - (0 or more boolean)

Returns:

(boolean)

Errors thrown:

arg_error - there are less than n conditions

Definition at line 108 of file afw_function_logical.c.

◆ afw_function_execute_not()

const afw_value_t* afw_function_execute_not ( afw_function_execute_t x)

Adaptive Function not

Parameters
xfunction execute parameter.

Evaluates boolean condition returning boolean true if condition evaluates to false and false if condition evaluates to true.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function not(
condition: boolean
): boolean;

Parameters:

condition - (boolean)

Returns:

(boolean)

Definition at line 166 of file afw_function_logical.c.

◆ afw_function_execute_or()

const afw_value_t* afw_function_execute_or ( afw_function_execute_t x)

Adaptive Function or

Parameters
xfunction execute parameter.

Evaluates 0 or more boolean conditions returning boolean false if there are no conditions and boolean true if any condition evaluate to true. All conditions after the first true remain unevaluated.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function or(
...conditions: (list of boolean)
): boolean;

Parameters:

conditions - (0 or more boolean)

Returns:

(boolean)

Definition at line 211 of file afw_function_logical.c.