reset is_region() to pass tests

This commit is contained in:
Jerome Plut 2020-12-03 21:25:57 +01:00
parent c7c982710f
commit 4af725eec1

View file

@ -20,8 +20,7 @@
// is_region(x);
// Description:
// Returns true if the given item looks like a region. A region is defined as a list of zero or more paths.
function is_region(x) =
is_list(x) && all([for(y=x) is_path(y, len(x[0][0]))]);
function is_region(x) = is_list(x) && is_path(x.x);
// Function: close_region()