java.lang.Object
dk.jonaslindstrom.ruffini.common.algorithms.Product<E>
Type Parameters:
E - Element type.

public class Product<E> extends Object
Compute the product of a list of elements over a monoid.
  • Constructor Details

    • Product

      public Product(Monoid<E> group)
  • Method Details

    • apply

      public E apply(java.util.function.IntFunction<E> f, Integer n)
    • apply

      public E apply(List<E> inputs)