Class MappedWithIndex<Y>

  • Type Parameters:
    Y - Type of target item
    All Implemented Interfaces:
    Iterable<Y>

    public final class MappedWithIndex<Y>
    extends IterableEnvelope<Y>
    Mapped with index iterable.

    There is no thread-safety guarantee.

    Since:
    1.0.0
    • Constructor Detail

      • MappedWithIndex

        @SafeVarargs
        public MappedWithIndex​(BiFunc<? super X,​Integer,​? extends Y> fnc,
                               X... src)
        Ctor.
        Type Parameters:
        X - Type of source item
        Parameters:
        fnc - Func
        src - Source iterable
      • MappedWithIndex

        public MappedWithIndex​(BiFunc<? super X,​Integer,​? extends Y> fnc,
                               Iterable<? extends X> src)
        Ctor.
        Type Parameters:
        X - Type of source item
        Parameters:
        fnc - Func
        src - Source iterable