1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 02:59:42 +01:00
This commit is contained in:
Justin Lin 2021-02-09 12:24:08 +08:00
parent 0262794453
commit fa569028ab
2 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1,3 @@
function _some(lt, assert_func, leng, i = 0) =
i == leng ? false :
assert_func(lt[i]) ? true : _some(lt, assert_func, leng, i + 1);

View File

@ -1,5 +1,3 @@
function _some(lt, assert_func, leng, i = 0) =
i == leng ? false :
assert_func(lt[i]) ? true : _some(lt, assert_func, leng, i + 1);
use <_impl/_some.scad>;
function some(lt, assert_func) = _some(lt, assert_func, len(lt));