split#

swordfish.function.split()#
  • str is a scalar:

    • If delimiter is not specified, split str into a CHAR vector.

    • If delimiter is specified, use delimiter as the delimiter to split str into a CHAR vector or a STRING vector.

  • str is a vector: Split each element of the vector as described above. Return the results in a columnar tuple.

Parameters:
  • str (Constant) – A TRING scalar or vector.

  • delimiter (Constant, optional) – A CHAR or STRING scalar indicating the separator, by default DFLT. It can consist of one or more characters, with the default being a comma (‘,’).