mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-20 18:32:04 +02:00
Fix warnings for null range in idx()
This commit is contained in:
@@ -986,7 +986,7 @@ function unique_count(list) =
|
||||
function idx(list, s=0, e=-1, step=1) =
|
||||
assert(is_list(list)||is_string(list), "Invalid input." )
|
||||
let( ll = len(list) )
|
||||
ll == 0 ? [0:1:-1] :
|
||||
ll == 0 ? [0:1:ll-1] :
|
||||
let(
|
||||
_s = posmod(s,ll),
|
||||
_e = posmod(e,ll)
|
||||
|
Reference in New Issue
Block a user