mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-06 04:09:47 +00:00
Apparently, "foo && let(expr) bar" is no longer allowed.
This commit is contained in:
parent
c001c6d8ae
commit
1d63556121
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue