Пример #1
0
 public static Option <T> product <NUM, T>(Option <T> lhs, Option <T> rhs) where NUM : struct, Num <T> =>
 lhs.Product <NUM, T>(rhs);
Пример #2
0
 /// <summary>
 /// Find the product of the Somes.  If either of the options are None then the result is None
 /// For numeric values the behaviour is to multiply the Somes (lhs * rhs)
 /// For Lst values the behaviour is to multiply all combinations of values in both lists
 /// to produce a new list
 /// Otherwise if the R type derives from IProductable then the behaviour
 /// is to call lhs.Product(rhs);
 /// </summary>
 /// <param name="lhs">Left-hand side of the operation</param>
 /// <param name="rhs">Right-hand side of the operation</param>
 /// <returns>lhs * rhs</returns>
 public static Option <T> product <T>(Option <T> lhs, Option <T> rhs) =>
 lhs.Product(rhs);