ClassesClassesClassesClasses | | | | Operators

tuple_gen_consttuple_gen_constTupleGenConsttuple_gen_constTupleGenConstTupleGenConst (Operator)

Name

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

Signature

tuple_gen_const( : : Length, Const : Newtuple)

Herror tuple_gen_const(const Hlong Length, const Hlong Const, Hlong* Newtuple)

Herror T_tuple_gen_const(const Htuple Length, const Htuple Const, Htuple* Newtuple)

Herror tuple_gen_const(const HTuple& Length, const HTuple& Const, Hlong* Newtuple)

Herror tuple_gen_const(const HTuple& Length, const HTuple& Const, HTuple* Newtuple)

void TupleGenConst(const HTuple& Length, const HTuple& Const, HTuple* Newtuple)

static HTuple HTuple::TupleGenConst(const HTuple& Length, const HTuple& Const)

void HOperatorSetX.TupleGenConst(
[in] VARIANT Length, [in] VARIANT Const, [out] VARIANT* Newtuple)

VARIANT HTupleX.TupleGenConst(
[in] VARIANT Length, [in] VARIANT Const)

static void HOperatorSet.TupleGenConst(HTuple length, HTuple constVal, out HTuple newtuple)

static HTuple HTuple.TupleGenConst(HTuple length, HTuple constVal)

Description

tuple_gen_consttuple_gen_constTupleGenConsttuple_gen_constTupleGenConstTupleGenConst generates a new tuple in NewtupleNewtupleNewtupleNewtupleNewtuplenewtuple. The input parameter LengthLengthLengthLengthLengthlength determines the number of elements for the new tuple. Thus, LengthLengthLengthLengthLengthlength may only consist of a single number. If LengthLengthLengthLengthLengthlength 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 ConstConstConstConstConstconstVal that may only consist of a single element. All elements in NewtupleNewtupleNewtupleNewtupleNewtuplenewtuple have got the same data type and value as the single element in ConstConstConstConstConstconstVal.

Exception: Empty input tupless

If any of the input tuples is empty, an exception is raised.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_gen_consttuple_gen_constTupleGenConsttuple_gen_constTupleGenConstTupleGenConst, which can be used in an expression in the following syntax:

Newtuple := gen_tuple_const(Length, Const)

Parallelization

Parameters

LengthLengthLengthLengthLengthlength (input_control)  number HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Length of tuple to generate.

ConstConstConstConstConstconstVal (input_control)  number HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)

Constant for initializing the tuple elements.

NewtupleNewtupleNewtupleNewtupleNewtuplenewtuple (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)

New Tuple.

Alternatives

tuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelect, tuple_selecttuple_selectTupleSelecttuple_selectTupleSelectTupleSelect, tuple_str_first_ntuple_str_first_nTupleStrFirstNtuple_str_first_nTupleStrFirstNTupleStrFirstN, tuple_str_last_ntuple_str_last_nTupleStrLastNtuple_str_last_nTupleStrLastNTupleStrLastN, tuple_concattuple_concatTupleConcattuple_concatTupleConcatTupleConcat, tuple_inserttuple_insertTupleInserttuple_insertTupleInsertTupleInsert, tuple_replacetuple_replaceTupleReplacetuple_replaceTupleReplaceTupleReplace, tuple_gen_sequencetuple_gen_sequenceTupleGenSequencetuple_gen_sequenceTupleGenSequenceTupleGenSequence

See also

tuple_randtuple_randTupleRandtuple_randTupleRandTupleRand

Module

Foundation


ClassesClassesClassesClasses | | | | Operators