mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 15:26:39 +02:00
rename params
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
function _every(lt, assert_func, leng, i = 0) =
|
function _every(lt, test, leng, i = 0) =
|
||||||
i == leng ? true :
|
i == leng ? true :
|
||||||
assert_func(lt[i]) ? _every(lt, assert_func, leng, i + 1) : false;
|
test(lt[i]) ? _every(lt, test, leng, i + 1) : false;
|
@@ -1,3 +1,3 @@
|
|||||||
function _some(lt, assert_func, leng, i = 0) =
|
function _some(lt, test, leng, i = 0) =
|
||||||
i == leng ? false :
|
i == leng ? false :
|
||||||
assert_func(lt[i]) ? true : _some(lt, assert_func, leng, i + 1);
|
test(lt[i]) ? true : _some(lt, test, leng, i + 1);
|
@@ -1,3 +1,3 @@
|
|||||||
use <_impl/_every.scad>;
|
use <_impl/_every.scad>;
|
||||||
|
|
||||||
function every(lt, assert_func) = _every(lt, assert_func, len(lt));
|
function every(lt, test) = _every(lt, test, len(lt));
|
@@ -1,3 +1,3 @@
|
|||||||
use <_impl/_some.scad>;
|
use <_impl/_some.scad>;
|
||||||
|
|
||||||
function some(lt, assert_func) = _some(lt, assert_func, len(lt));
|
function some(lt, test) = _some(lt, test, len(lt));
|
Reference in New Issue
Block a user