mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Fixed error in shuffle()
This commit is contained in:
parent
f8f015758a
commit
0b38d7b546
2 changed files with 2 additions and 2 deletions
|
@ -512,7 +512,7 @@ function enumerate(l,idx=undef) =
|
||||||
// Description:
|
// Description:
|
||||||
// Shuffles the input list into random order.
|
// Shuffles the input list into random order.
|
||||||
function shuffle(list) =
|
function shuffle(list) =
|
||||||
assert(is_list(l)||is_string(list))
|
assert(is_list(list)||is_string(list))
|
||||||
len(list)<=1 ? list :
|
len(list)<=1 ? list :
|
||||||
let (
|
let (
|
||||||
rval = rands(0,1,len(list)),
|
rval = rands(0,1,len(list)),
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,13];
|
BOSL_VERSION = [2,0,14];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue