tweak to _list_pattern

This commit is contained in:
Adrian Mariano 2020-07-29 06:27:19 -04:00
parent 045ea3085a
commit 4f4be3d1d0

View file

@ -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;