diff -r 02229133df43 -r 51a3d6f39944 svghmi/pythonic.js --- a/svghmi/pythonic.js Tue Sep 13 16:51:54 2022 +0200 +++ b/svghmi/pythonic.js Tue Sep 13 16:53:15 2022 +0200 @@ -165,8 +165,11 @@ } const _zip = longest => (...iterables) => { - if (iterables.length < 2) { - throw new TypeError("zip takes 2 iterables at least, "+iterables.length+" given"); + if (iterables.length == 0) { + // works starting with 1 iterable + // [a,b,c] -> [[a],[b],[c]] + // [a,b,c],[d,e,f] -> [[a,d],[b,e],[c,f]] + throw new TypeError("zip takes 1 iterables at least, "+iterables.length+" given"); } return new Iterator(function * () {