mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-04 03:09:45 +00:00
fixed indentation
This commit is contained in:
parent
328a7e8daa
commit
4dff5e7fea
1 changed files with 6 additions and 10 deletions
16
common.scad
16
common.scad
|
@ -348,16 +348,12 @@ function get_height(h=undef,l=undef,height=undef,dflt=undef) =
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Examples:
|
// Examples:
|
||||||
// function f(arg1=_undef, arg2=_undef, arg3=_undef,
|
// function f(arg1=_undef, arg2=_undef, arg3=_undef, named1=_undef, named2=_undef, named3=_undef) = let(named = get_named_args([arg1, arg2, arg3], [[named1, "default1"], [named2, "default2"], [named3, "default3"]])) named;
|
||||||
// named1=_undef, named2=_undef, named3=_undef) =
|
// echo(f()); // ["default1", "default2", "default3"]
|
||||||
// let(named = get_named_args([arg1, arg2, arg3],
|
// echo(f("given2", "given3", named1="given1")); // ["given1", "given2", "given3"]
|
||||||
// [[named1, "default1"], [named2, "default2"], [named3, "default3"]]))
|
// echo(f("given1")); // ["given1", "default2", "default3"]
|
||||||
// named;
|
// echo(f(named1="given1", "given2")); // ["given1", "given2", "default3"]
|
||||||
// echo(f()); // ["default1", "default2", "default3"]
|
// echo(f(undef, named1="given1", undef)); // ["given1", undef, undef]
|
||||||
// echo(f("given2", "given3", named1="given1")); // ["given1", "given2", "given3"]
|
|
||||||
// echo(f("given1")); // ["given1", "default2", "default3"]
|
|
||||||
// echo(f(named1="given1", "given2")); // ["given1", "given2", "default3"]
|
|
||||||
// echo(f(undef, named1="given1", undef)); // ["given1", undef, undef]
|
|
||||||
|
|
||||||
// a value that the user should never enter randomly;
|
// a value that the user should never enter randomly;
|
||||||
// result of `dd if=/dev/random bs=32 count=1 |base64` :
|
// result of `dd if=/dev/random bs=32 count=1 |base64` :
|
||||||
|
|
Loading…
Reference in a new issue