Parameter.getNth

Get nth Parameter, folding in tuples.

Since parameters can include tuples, which would increase its length, this function allows to get the nth parameter as if all tuples transitively contained in parameters were flattened.

class Parameter
static
getNth
(
Parameters* parameters
,
size_t nth
)

Parameters

parameters Parameters*

Array of Parameter to iterate over

nth size_t

Index of the desired parameter.

Return Value

Type: Parameter

The parameter at index nth (taking tuples into account), or null if out of bound.

Meta