Skip to content

IteratorOfCartesianProduct and empty lists #2420

Closed
@isadofschi

Description

IteratorOfCartesianProduct gives the following error if one of the arguments is empty:

	Error, Each arguments must be a finite collection called from
	IteratorOfCartesianProduct2( arg ...

I think this is a bug. For example:

	IteratorOfCartesianProduct([1,2],[]);

gives this error, while

	Cartesian([1,2],[]);

correctly returns [].
Calling

	IteratorOfCartesianProduct([[1,2],[]]);

also gives an error.

I have tried this in GAP 4.8.4 and GAP 4.8.10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions