.. highlightlang:: us .. _st_seti: ST_seti ======= .. index:: ST_seti .. us.tag ST_seti NOTREADYENGLISH STR New552 Changed593 The :ref:`ST_seti` function takes an vector argument (*A*) and removes duplicate elements. The function returns an index vector of the result. .. function:: C = ST_seti(A) C = ST_seti(A, bSort) .. us.return **Return Value** *C* is an index vector. .. us.params **Parameters** .. uparam:: A *A* is a real or string vector. .. uparam:: bSort *bSort* specifies if the index vektor contains the indeces of the sorted or unsorted vector. Default value is TRUE (1). . .. us.example **Example** :: * ST_seti([1.3, 4.2, 2.2, 4.2, 6.1, 3.1]) * 1.000 3.000 6.000 2.000 5.000 * * ST_seti(["one", "four", "two", "four", "three"])' 4 1 5 3 * * ST_seti(["one", "four", "two", "four", "three"], FALSE)' 1 2 3 5 .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.9.3 - New parameter *bSort*. * - 5.5.2 - New. .. seealso:: :ref:`overview-strings`, :ref:`ST_complement`, :ref:`ST_intersection`, :ref:`ST_union`, :ref:`ST_set` :sub:`id-1858021`