Docs
chromia.com

FUNCTION

text.sub

pure function sub(start: integer): text

Returns a substring of this text starting from the specified index (inclusive).

Parameters

  • start — the starting index of the substring

Since 0.6.0


pure function sub(start: integer, end: integer): text

Returns a substring of this text from the specified start index (inclusive) to the specified end index (exclusive).

Parameters

  • start — the start index of the substring
  • end — the end index of the substring

Since 0.6.0