tuple_removeTupleRemoveTupleRemovetuple_removetuple_remove
説明
tuple_removeTupleRemoveTupleRemovetuple_removetuple_remove — tuple から要素を取り除く。
書式
tuple_remove( tuple Tuple, integer Index, out tuple Reduced )void TupleRemove( const HTuple& Tuple, const HTuple& Index, HTuple* Reduced )static void HOperatorSet.TupleRemove( HTuple tuple, HTuple index, out HTuple reduced )def tuple_remove( tuple: MaybeSequence[Union[float, int, str]], index: MaybeSequence[int] ) -> Sequence[Union[float, int, str]]
def tuple_remove_s( tuple: MaybeSequence[Union[float, int, str]], index: MaybeSequence[int] ) -> Union[float, int, str]Herror tuple_remove( const Hlong Tuple, const Hlong Index, Hlong* Reduced )
Herror T_tuple_remove( const Htuple Tuple, const Htuple Index, Htuple* Reduced )
HTuple HTuple::TupleRemove( const HTuple& Index ) const
HTuple HTuple.TupleRemove( HTuple index )
説明
tuple_removeTupleRemove は Tupletupletuple から複数の要素を取り除き、
tuple Reducedreducedreducedに残りを返します。Indexindexindex は取り除く
要素のインデックスを指定します。従って、Indexindexindex は整数値の
みを含む場合があります(Indexindexindex は
端数なしの整数値でなければいけません)。tuple の要素のインデ
ックスは 0 から始まります。つまり最初の tuple の要素はインデック
ス 0 となることに注意してください。重複や範囲外のインデックスは無
視されます。
例外: 入力tuple が 空
もし Tupletupletuple が空の場合、関数は空のtupleを返します。
HDevelopインライン演算
HDevelopは tuple_removeTupleRemove の代わりとなるインライン演算を備えており、以下の構文形式で使
用することができます::
Reduced := remove(Tuple, Index)
実行情報
実行情報
パラメーター
Tupletupletuple (input_control) tuple(-array) → (integer / real / string)HTuple (Hlong / double / HString)HTuple (int / long / double / string)MaybeSequence[Union[float, int, str]]Htuple (Hlong / double / char*)
入力 tuple
Indexindexindex (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)
取り除く要素のインデックス
Reducedreducedreduced (output_control) tuple(-array) → (integer / real / string)HTuple (Hlong / double / HString)HTuple (int / long / double / string)Sequence[Union[float, int, str]]Htuple (Hlong / double / char*)
要素を取り除かれた tuple
他のオペレーターとの組み合わせ
組み合わせ
他の選択候補
tuple_first_nTupleFirstN, tuple_last_nTupleLastN, tuple_str_bit_selectTupleStrBitSelect, tuple_concatTupleConcat, tuple_insertTupleInsert, tuple_replaceTupleReplace
関連項目
tuple_selectTupleSelect, tuple_select_maskTupleSelectMask
モジュール
Foundation