mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 05:21:38 +02:00
add comments
This commit is contained in:
@@ -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);
|
@@ -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]];
|
||||
|
@@ -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 :
|
||||
|
Reference in New Issue
Block a user