mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 10:42:57 +02:00
update to 3.0
This commit is contained in:
@@ -13,5 +13,5 @@ Splits the given string around matches of the given delimiting character.
|
||||
|
||||
use <util/split_str.scad>;
|
||||
|
||||
echo(split_str("hello,world", ",")); // ECHO: ["hello", "world"]
|
||||
assert(split_str("hello,world", ",") == ["hello", "world"]);
|
||||
|
@@ -14,5 +14,5 @@ Returns the part of the string from `begin` to `end`, or to the `end` of the str
|
||||
|
||||
use <util/sub_str.scad>;
|
||||
|
||||
echo(sub_str("helloworld", 0, 5)); // ECHO: "hello"
|
||||
echo(sub_str("helloworld", 5)); // ECHO: "world"
|
||||
assert(sub_str("helloworld", 0, 5) == "hello");
|
||||
assert(sub_str("helloworld", 5) == "world");
|
Reference in New Issue
Block a user