mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-16 10:34:15 +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) =
|
function idx(list, s=0, e=-1, step=1) =
|
||||||
assert(is_list(list)||is_string(list), "Invalid input." )
|
assert(is_list(list)||is_string(list), "Invalid input." )
|
||||||
let( ll = len(list) )
|
let( ll = len(list) )
|
||||||
ll == 0 ? [0:1:-1] :
|
ll == 0 ? [0:1:ll-1] :
|
||||||
let(
|
let(
|
||||||
_s = posmod(s,ll),
|
_s = posmod(s,ll),
|
||||||
_e = posmod(e,ll)
|
_e = posmod(e,ll)
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,541];
|
BOSL_VERSION = [2,0,542];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user