1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 05:21:38 +02:00

add comments

This commit is contained in:
Justin Lin
2019-07-01 07:43:54 +08:00
parent 681d697840
commit 4d02e6bb65
3 changed files with 30 additions and 0 deletions

View File

@@ -1,3 +1,13 @@
/**
* reverse.scad
*
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2-reverse.html
*
**/
include <util/__comm__/__reverse.scad>;
function reverse(lt) = __reverse(lt);

View File

@@ -1,3 +1,13 @@
/**
* slice.scad
*
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2-slice.html
*
**/
function slice(lt, begin, end) =
let(ed = is_undef(end) ? len(lt) : end)
[for(i = begin; i < ed; i = i + 1) lt[i]];

View File

@@ -1,3 +1,13 @@
/**
* sort.scad
*
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2-sort.html
*
**/
function _sort(lt, i) =
let(leng = len(lt))
leng <= 1 ? lt :