mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 00:37:41 +02:00
Apparently, "foo && let(expr) bar" is no longer allowed.
This commit is contained in:
@@ -95,8 +95,8 @@ function is_nan(x) = (x!=x);
|
|||||||
// is_list_of([[1,[3,4]], [4,[5,6]]], [1,[2,3]]); // Returne true
|
// is_list_of([[1,[3,4]], [4,[5,6]]], [1,[2,3]]); // Returne true
|
||||||
// is_list_of([[1,[3,INF]], [4,[5,6]]], [1,[2,3]]); // Returne false
|
// is_list_of([[1,[3,INF]], [4,[5,6]]], [1,[2,3]]); // Returne false
|
||||||
function is_list_of(list,pattern) =
|
function is_list_of(list,pattern) =
|
||||||
is_list(list) &&
|
|
||||||
let(pattern = 0*pattern)
|
let(pattern = 0*pattern)
|
||||||
|
is_list(list) &&
|
||||||
[]==[for(entry=list) if (entry*0 != pattern) entry];
|
[]==[for(entry=list) if (entry*0 != pattern) entry];
|
||||||
|
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,189];
|
BOSL_VERSION = [2,0,190];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user