StringTake
A substring of s — the first/last n characters, or an explicit 1-based range.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
StringTake✓StringTake(s, n)the first n characters of s; the last |n| if n is negativeStringTake(s, {n})the nth character alone, as a length-1 stringStringTake(s, {m, n})characters m through n inclusive, 1-based, negative counting from the endTyped signatures
| Type | Package | Applies |
|---|---|---|
(string, integer | list<integer>) -> string | combinatorics | always |
Details
- Positions and lengths count Unicode code points — see StringLength.
Examples
Properties #
About
| Examples | 12 |
|---|---|
| Checked against | Wolfram Language 12 agree |
| Crosswalk | Wolfram Language |
See also: StringLength