public static _slice(text as MutableString, start as Long, stop as Long, sliceStep as Long, hasStart as Boolean, hasStop as Boolean) as String
Implements scalar-based slicing while preserving omitted bounds.
| Parameter | Description |
|---|---|
text | Source. |
start | Start index. |
stop | Exclusive stop index. |
sliceStep | Nonzero step. |
hasStart | Whether start was supplied. |
hasStop | Whether stop was supplied. |
An immutable slice.
assert m"Klyn"[::-1] == m"nylK"