A
- The Iterable element typepublic final class Repeat<A> extends Object implements Fn1<A,Iterable<A>>
Iterable
that repeatedly iterates that value.Modifier and Type | Method and Description |
---|---|
Iterable<A> |
checkedApply(A a)
Invoke this function with the given argument, potentially throwing any
Throwable . |
static <A> Repeat<A> |
repeat() |
static <A> Iterable<A> |
repeat(A a) |
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(A a)
Fn1
Throwable
.checkedApply
in interface Fn1<A,Iterable<A>>
a
- the argumentpublic static <A> Repeat<A> repeat()
public static <A> Iterable<A> repeat(A a)