mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-19 19:09:36 +00:00
tweak to _list_pattern
This commit is contained in:
parent
045ea3085a
commit
4f4be3d1d0
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ function is_list_of(list,pattern) =
|
|||
[]==[for(entry=list) if (entry*0 != pattern) entry];
|
||||
|
||||
function _list_pattern(list) =
|
||||
[for(entry=list) is_list(entry) ? _list_pattern(entry) : 0];
|
||||
|
||||
is_list(list) ? [for(entry=list) is_list(entry) ? _list_pattern(entry) : 0]
|
||||
: 0;
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue