Пример #1
0
 public static IEnumerable <IReadOnlyList <T> > Cartesian <T>(this IEnumerable <IEnumerable <T> > dimensions)
 {
     return(CartesianEnumerable.Enumerate <T, IEnumerable <T> >(dimensions.ToArray()));
 }
Пример #2
0
 public static IEnumerable <IReadOnlyList <TElement> > Cartesian <TElement, TDimension>(this IEnumerable <TDimension> dimensions) where TDimension : IEnumerable <TElement>
 {
     return(CartesianEnumerable.Enumerate <TElement, TDimension>(dimensions.ToArray()));
 }