tuple_borTupleBorTupleBortuple_bortuple_bor
説明
tuple_borTupleBorTupleBortuple_bortuple_bor — 2 つの tuple のビットに関する orを計算する。
書式
tuple_bor( integer T1, integer T2, out integer BOr )void TupleBor( const HTuple& T1, const HTuple& T2, HTuple* BOr )static void HOperatorSet.TupleBor( HTuple t1, HTuple t2, out HTuple BOr )def tuple_bor( t1: MaybeSequence[int], t2: MaybeSequence[int] ) -> Sequence[int]
def tuple_bor_s( t1: MaybeSequence[int], t2: MaybeSequence[int] ) -> intHerror tuple_bor( const Hlong T1, const Hlong T2, Hlong* BOr )
Herror T_tuple_bor( const Htuple T1, const Htuple T2, Htuple* BOr )
HTuple HTuple::TupleBor( const HTuple& T2 ) const
HTuple HTuple.TupleBor( HTuple t2 )
説明
tuple_borTupleBor は、入力 tuple T1t1t1 および T2t2t2 の
ビット和を計算します。両方の tuple が同じ長さなら、対応した要素間で
計算が行われます。そうでない場合、T1t1t1 または T2t2t2
は長さ 1 になる必要があります。長い tuple のそれぞれの要素と長さ
1 の tuple 要素との間で計算されます。入力 tupleは整数です。
例外: 入力tuple が 空
どちらかの、または両方の入力tupleが空の場合、この関数は空のtupleを返します。
HDevelopインライン演算
HDevelopは tuple_borTupleBor の代わりとなるインライン演算を備えており、以下の構文形式で使
用することができます::
BOr := T1 bor T2
実行情報
実行情報
パラメーター
T1t1t1 (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)
入力 tuple 1
T2t2t2 (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)
入力 tuple 2
BOrBOrbor (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
入力 tuple の ビット和
他のオペレーターとの組み合わせ
組み合わせ
他の選択候補
tuple_bandTupleBand, tuple_bxorTupleBxor, tuple_bnotTupleBnot
関連項目
tuple_andTupleAnd, tuple_orTupleOr, tuple_xorTupleXor, tuple_notTupleNot
モジュール
Foundation