mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-21 20:55:19 +02:00
Revert arrays.scad change
This commit is contained in:
@@ -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.")
|
||||
|
Reference in New Issue
Block a user