A
- The Iterable element typepublic final class Cycle<A> extends Object implements Fn1<Iterable<A>,Iterable<A>>
Iterable
, return an infinite Iterable
that repeatedly cycles its elements, in
order.Modifier and Type | Method and Description |
---|---|
Iterable<A> |
checkedApply(Iterable<A> as)
Invoke this function with the given argument, potentially throwing any
Throwable . |
static <A> Cycle<A> |
cycle() |
static <A> Iterable<A> |
cycle(A... as) |
static <A> Iterable<A> |
cycle(Iterable<A> as) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, apply, carry, cartesian, censor, choose, cocartesian, compose, contraMap, diMap, diMapL, diMapR, discardL, discardR, flatMap, fmap, fn1, fromFunction, lazyZip, listens, local, pure, pureFn1, thunk, toFunction, trampolineM, widen, zip, zip
public Iterable<A> checkedApply(Iterable<A> as)
Fn1
Throwable
.public static <A> Cycle<A> cycle()
@SafeVarargs public static <A> Iterable<A> cycle(A... as)