mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-18 14:47:15 +00:00
small addition to joinTo
This commit is contained in:
parent
3dc68a7b8b
commit
2644f27975
@ -35,16 +35,14 @@ inline fun <I, R> Iterable<I>.joinTo(
|
|||||||
inline fun <I> Iterable<I>.joinTo(
|
inline fun <I> Iterable<I>.joinTo(
|
||||||
crossinline separatorFun: (I) -> I?,
|
crossinline separatorFun: (I) -> I?,
|
||||||
prefix: I? = null,
|
prefix: I? = null,
|
||||||
postfix: I? = null,
|
postfix: I? = null
|
||||||
crossinline transform: (I) -> I?
|
): List<I> = joinTo<I, I>(separatorFun, prefix, postfix) { it }
|
||||||
): List<I> = joinTo<I, I>(separatorFun, prefix, postfix, transform)
|
|
||||||
|
|
||||||
inline fun <I> Iterable<I>.joinTo(
|
inline fun <I> Iterable<I>.joinTo(
|
||||||
separator: I?,
|
separator: I?,
|
||||||
prefix: I? = null,
|
prefix: I? = null,
|
||||||
postfix: I? = null,
|
postfix: I? = null
|
||||||
crossinline transform: (I) -> I?
|
): List<I> = joinTo<I>({ separator }, prefix, postfix)
|
||||||
): List<I> = joinTo<I>({ separator }, prefix, postfix, transform)
|
|
||||||
|
|
||||||
inline fun <I, reified R> Array<I>.joinTo(
|
inline fun <I, reified R> Array<I>.joinTo(
|
||||||
crossinline separatorFun: (I) -> R?,
|
crossinline separatorFun: (I) -> R?,
|
||||||
|
Loading…
Reference in New Issue
Block a user