Cartesian product of arbitrary sets in Java

后端 未结 9 2032
小鲜肉
小鲜肉 2020-11-22 07:28

Do you know some neat Java libaries that allow you to make cartesian product of two (or more) sets?

For example: I have three sets. One with objects of class Person

9条回答
  •  感情败类
    2020-11-22 08:00

    how about using odl.com.google.common18.collect.Sets and calling Sets.cartesianProduct() method

提交回复
热议问题