Class ConsingIterator<A>

java.lang.Object
com.jnape.palatable.lambda.internal.iteration.ConsingIterator<A>
All Implemented Interfaces:
Iterator<A>

public final class ConsingIterator<A> extends Object implements Iterator<A>
  • Constructor Details

    • ConsingIterator

      public ConsingIterator(A head, Iterable<A> as)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<A>
    • next

      public A next()
      Specified by:
      next in interface Iterator<A>