tuple_sort_indexTupleSortIndexTupleSortIndextuple_sort_indextuple_sort_index
説明
tuple_sort_indexTupleSortIndexTupleSortIndextuple_sort_indextuple_sort_index — tuple の要素を並べ替え、並び替えた tuple のインデックスを返す。
書式
tuple_sort_index( tuple Tuple, out integer Indices )void TupleSortIndex( const HTuple& Tuple, HTuple* Indices )static void HOperatorSet.TupleSortIndex( HTuple tuple, out HTuple indices )def tuple_sort_index( tuple: MaybeSequence[Union[float, int, str]] ) -> Sequence[int]
def tuple_sort_index_s( tuple: MaybeSequence[Union[float, int, str]] ) -> intHerror tuple_sort_index( const Hlong Tuple, Hlong* Indices )
Herror T_tuple_sort_index( const Htuple Tuple, Htuple* Indices )
HTuple HTuple::TupleSortIndex( ) const
HTuple HTuple.TupleSortIndex( )
説明
tuple_sort_indexTupleSortIndex は Tupletupletuple の全ての要素を昇順に並
べ替え、入力 tuple Tupletupletuple に関して並べ替えた要素のインデッ
クスを Indicesindicesindices に返します。前提条件として Tupletupletuple
の単一要素同士は比較可能でなくてはいけません。従って
Tupletupletuple は文字だけから成るかまたは整数と実数だけから成るか
のどちらかでなくてはいけません。後者の場合、整数と実数は混在してもかまいませ
ん。
例外: 入力tuple が 空
入力tupleが空の場合、この関数は空のtupleを返します。
HDevelopインライン演算
HDevelopは tuple_sort_indexTupleSortIndex の代わりとなるインライン演算を備えており、以下の構文形式で使
用することができます::
Indices := sort_index(Tuple)
実行情報
実行情報
パラメーター
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
Indicesindicesindices (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
並べ替えた tuple
他のオペレーターとの組み合わせ
組み合わせ
他の選択候補
tuple_sortTupleSort, tuple_inverseTupleInverse
モジュール
Foundation