1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-split_str.md

16 lines
283 B
Markdown
Raw Normal View History

2017-03-29 13:20:17 +08:00
# split_str
2019-06-17 08:33:00 +08:00
Splits the given string around matches of the given delimiting character.
2017-03-29 13:20:17 +08:00
## Parameters
- `t` : The source string.
- `delimiter` : The delimiting character.
## Examples
2022-06-06 13:11:46 +08:00
use <util/split_str.scad>
2017-03-29 13:20:17 +08:00
2021-02-10 15:59:03 +08:00
assert(split_str("hello,world", ",") == ["hello", "world"]);
2017-03-29 13:20:17 +08:00