tuple_bxortuple_bxorTupleBxorTupleBxortuple_bxor (Operator)

Name

tuple_bxortuple_bxorTupleBxorTupleBxortuple_bxor — Berechnen des bitweisen Exklusiv-Oder zweier Tupel.

Signatur

tuple_bxor( : : T1, T2 : BXor)

Herror tuple_bxor(const Hlong T1, const Hlong T2, Hlong* BXor)

Herror T_tuple_bxor(const Htuple T1, const Htuple T2, Htuple* BXor)

void TupleBxor(const HTuple& T1, const HTuple& T2, HTuple* BXor)

HTuple HTuple::TupleBxor(const HTuple& T2) const

static void HOperatorSet.TupleBxor(HTuple t1, HTuple t2, out HTuple BXor)

HTuple HTuple.TupleBxor(HTuple t2)

def tuple_bxor(t1: MaybeSequence[int], t2: MaybeSequence[int]) -> Sequence[int]

def tuple_bxor_s(t1: MaybeSequence[int], t2: MaybeSequence[int]) -> int

Beschreibung

tuple_bxortuple_bxorTupleBxorTupleBxorTupleBxortuple_bxor berechnet das bitweise Exklusiv-Oder der Eingabetupel T1T1T1T1t1t1 und T2T2T2T2t2t2. Falls beide Tupel dieselbe Länge haben, werden die entsprechenden Elemente der beiden Tupel veknüpft. Ansonsten muss entweder T1T1T1T1t1t1 oder T2T2T2T2t2t2 die Länge 1 haben. In diesem Fall wird die Operation für jedes Element des längeren Tupels mit dem einzigen Element des anderen Tupels ausgeführt. Die Eingabezahlen müssen ganze Zahlen sein.

Sonderfall: Leere Eingabetupel

Falls eines oder beide der Eingabetupel leer sind, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_bxortuple_bxorTupleBxorTupleBxorTupleBxortuple_bxor, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

BXor := T1 bxor T2

Ausführungsinformationen

Parameter

T1T1T1T1t1t1 (input_control)  integer(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Eingabetupel 1.

T2T2T2T2t2t2 (input_control)  integer(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Eingabetupel 2.

BXorBXorBXorBXorBXorbxor (output_control)  integer(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Binäres Exklusiv-Oder der Eingabetupel.

Alternativen

tuple_bandtuple_bandTupleBandTupleBandTupleBandtuple_band, tuple_bortuple_borTupleBorTupleBorTupleBortuple_bor, tuple_bnottuple_bnotTupleBnotTupleBnotTupleBnottuple_bnot

Siehe auch

tuple_andtuple_andTupleAndTupleAndTupleAndtuple_and, tuple_ortuple_orTupleOrTupleOrTupleOrtuple_or, tuple_xortuple_xorTupleXorTupleXorTupleXortuple_xor, tuple_nottuple_notTupleNotTupleNotTupleNottuple_not

Modul

Foundation