mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-11 22:43:59 +02:00
tweak to _list_pattern
This commit is contained in:
@@ -115,8 +115,8 @@ function is_list_of(list,pattern) =
|
|||||||
[]==[for(entry=list) if (entry*0 != pattern) entry];
|
[]==[for(entry=list) if (entry*0 != pattern) entry];
|
||||||
|
|
||||||
function _list_pattern(list) =
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user