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

16 lines
284 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
2020-01-28 17:51:20 +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