Class Operators.LiftedIFold<T,S>

java.lang.Object
eu.bandm.tools.util.Operators.LiftedIFold<T,S>
All Implemented Interfaces:
Operators.Fun<Collection<T>,S>
Enclosing class:
Operators

static class Operators.LiftedIFold<T,S> extends Object implements Operators.Fun<Collection<T>,S>
  • Field Details

  • Constructor Details

  • Method Details

    • apply

      public S apply(Collection<T> x)
      Description copied from interface: Operators.Fun
      Compute an output element from an input element. Computation should be stateless and thread-safe, i.e., f.apply(x) for a given fixed function object f and input element x should not vary unless the observable state of x varies.
      Specified by:
      apply in interface Operators.Fun<T,S>
      Parameters:
      x - an input element.
      Returns:
      an output element.
    • toString

      public String toString()
      Overrides:
      toString in class Object