1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00
This commit is contained in:
Justin Lin
2021-02-09 12:23:23 +08:00
parent 7e3074b676
commit 0262794453
2 changed files with 4 additions and 3 deletions

View File

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

View File

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