Revert arrays.scad change

This commit is contained in:
RonaldoCMP 2021-10-13 21:30:48 -03:00
parent f22d24ee15
commit 8cdd10fd82

View file

@ -90,7 +90,7 @@ function select(list, start, end) =
: end==undef
? is_num(start)
? list[ (start%l+l)%l ]
: assert( is_vector(start) || is_range(start), "Invalid start parameter")
: assert( is_list(start) || is_range(start), "Invalid start parameter")
[for (i=start) list[ (i%l+l)%l ] ]
: assert(is_finite(start), "When `end` is given, `start` parameter should be a number.")
assert(is_finite(end), "Invalid end parameter.")