Class UnfoldingIterator<A,​B>

  • All Implemented Interfaces:
    java.util.Iterator<A>

    public final class UnfoldingIterator<A,​B>
    extends ImmutableIterator<A>
    • Constructor Detail

      • UnfoldingIterator

        public UnfoldingIterator​(Fn1<? super B,​Maybe<Tuple2<A,​B>>> function,
                                 B seed)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public A next()