From 3d868357522f193377fbdec65d87d458ef978286 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Mon, 1 Mar 2021 23:05:32 -0800 Subject: [PATCH] Actually add homogenous() alias. --- arrays.scad | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arrays.scad b/arrays.scad index 98b7ec4..cce3552 100644 --- a/arrays.scad +++ b/arrays.scad @@ -39,6 +39,8 @@ function is_homogeneous(l, depth=10) = !is_list(l) || l==[] ? false : let( l0=l[0] ) [] == [for(i=[1:len(l)-1]) if( ! _same_type(l[i],l0, depth+1) ) 0 ]; + +function is_homogenous(l, depth=10) = is_homogeneous(l, depth); function _same_type(a,b, depth) = (depth==0) ||