mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-15 12:44:09 +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)
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,541];
|
||||
BOSL_VERSION = [2,0,542];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
Reference in New Issue
Block a user