Package org.hexworks.zircon.internal.extensions

Functions

disposeAll
Link copied to clipboard
common
fun <T : Disposable> MutableList<T>.disposeAll()
flatMap
Link copied to clipboard
common
inline fun <T, R> PersistentList<T>.flatMap(transform: (T) -> PersistentList<R>): PersistentList<R>
getIfPresent
Link copied to clipboard
common
fun <T> List<T>.getIfPresent(idx: Int): Maybe<T>
Returns an element of this List wrapped in an Maybe which is empty if idx is out of bounds.
fun StringBuilder.getIfPresent(idx: Int): Maybe<Char>
Returns an element of this StringBuilder wrapped in an Maybe which is empty if idx is out of bounds.