You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, cartesian method does not allow to be used with infinite iterables. If cartesian returns an iterable of iterables, this method will be able to be lazy.
The text was updated successfully, but these errors were encountered:
Thinking about it, cartesian method implementation is already lazy. This method allows a finite number of iterables. These iterables can be potentially infinite. When I thought in lazy cartesian method, I thought in a product of infinite iterables. However this thing is impossible to implement because we need to know if all of iterables are empty or not to check if the iterable result is empty or not.
Then, I just have to implement cartesian method that returns an Iterum instance of Iterum instances.
Because there are other methods like permutations, power, combinations, variations that could be work with infinite iterables and numbers if the first value of iterables is that variates first.
Now,
cartesian
method does not allow to be used with infinite iterables. Ifcartesian
returns an iterable of iterables, this method will be able to be lazy.The text was updated successfully, but these errors were encountered: