mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-03 03:33:08 +02:00
update to 3.0
This commit is contained in:
@@ -12,5 +12,5 @@ Parses the string argument as an number.
|
||||
|
||||
use <util/parse_number.scad>;
|
||||
|
||||
echo(parse_number("10") + 1); // ECHO: 11
|
||||
echo(parse_number("-1.1") + 1); // ECHO: -0.1
|
||||
assert((parse_number("10") + 1) == 11);
|
||||
assert((parse_number("-1.1") + 1) == -0.1);
|
@@ -12,5 +12,5 @@ Reverse a list.
|
||||
|
||||
use <util/reverse.scad>;
|
||||
|
||||
echo(reverse([1, 2, 3])); // ECHO: [3, 2, 1]
|
||||
assert(reverse([1, 2, 3]) == [3, 2, 1]);
|
||||
|
@@ -14,5 +14,5 @@ Returns a list selected from `begin` to `end`, or to the `end` of the list (`end
|
||||
|
||||
use <util/slice.scad>;
|
||||
|
||||
echo(slice([for(c = "helloworld") c], 0, 5)); // ECHO: ["h", "e", "l", "l", "o"]
|
||||
echo(slice([for(c = "helloworld") c], 5)); // ECHO: ["w", "o", "r", "l", "d"]
|
||||
assert(slice([for(c = "helloworld") c], 0, 5) == ["h", "e", "l", "l", "o"]);
|
||||
assert(slice([for(c = "helloworld") c], 5) == ["w", "o", "r", "l", "d"]);
|
Reference in New Issue
Block a user