NaruminchoUtilIterable<T> extension

on

Methods

addSeparator(T separator) Iterable<T>

Available on Iterable<T>, provided by the NaruminchoUtilIterable extension

flatMapAndRemoveNull<Output>(Iterable<Output?> func(T)) Iterable<Output>

Available on Iterable<T>, provided by the NaruminchoUtilIterable extension

expanded とは違い null を取り除く flatMap
mapAndRemoveNull<Output>(Output? func(T)) → IList<Output>

Available on Iterable<T>, provided by the NaruminchoUtilIterable extension

先頭から関数を適用し, null だった場合は破棄する
mapFirstNotNull<Output>(Output? func(T)) → Output?

Available on Iterable<T>, provided by the NaruminchoUtilIterable extension

先頭から関数を適用したときに, 最初に null ではないものを返す
setLength(int length, T fillValue) Iterable<T>

Available on Iterable<T>, provided by the NaruminchoUtilIterable extension

setMinLength(int minLength, T fillValue) Iterable<T>

Available on Iterable<T>, provided by the NaruminchoUtilIterable extension