tuple_gen_const ( : : Length, Const : Newtuple )

Generate a tuple of a specific length and initialize its elements.

tuple_gen_const generates a new tuple in Newtuple. The input parameter Length determines the number of elements for the new tuple. Thus Length may only consist of a single number. If Length contains a floating point number, this may only represent an integer value (without fraction). The data type and value of each element of the new generated tuple is determined by the input parameter Const that may only consist of a single element. All elements in Newtuple have got the same data type and value as the single element in Const.


Parameters

Length (input_control)
number -> integer / real
Length of tuple to generate.

Const (input_control)
number -> integer / real / string
Constant for initializing the tuple elements.

Newtuple (output_control)
number(-array) -> integer / real / string
New Tuple.


Parallelization Information

tuple_gen_const is reentrant and processed without parallelization.


Alternatives

tuple_str_bit_select, tuple_select, tuple_str_first_n, tuple_str_last_n, tuple_concat


See also

tuple_rand


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH