mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-17 13:53:49 +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(
|
||||
crossinline separatorFun: (I) -> I?,
|
||||
prefix: I? = null,
|
||||
postfix: I? = null,
|
||||
crossinline transform: (I) -> I?
|
||||
): List<I> = joinTo<I, I>(separatorFun, prefix, postfix, transform)
|
||||
postfix: I? = null
|
||||
): List<I> = joinTo<I, I>(separatorFun, prefix, postfix) { it }
|
||||
|
||||
inline fun <I> Iterable<I>.joinTo(
|
||||
separator: I?,
|
||||
prefix: I? = null,
|
||||
postfix: I? = null,
|
||||
crossinline transform: (I) -> I?
|
||||
): List<I> = joinTo<I>({ separator }, prefix, postfix, transform)
|
||||
postfix: I? = null
|
||||
): List<I> = joinTo<I>({ separator }, prefix, postfix)
|
||||
|
||||
inline fun <I, reified R> Array<I>.joinTo(
|
||||
crossinline separatorFun: (I) -> R?,
|
||||
|
Loading…
Reference in New Issue
Block a user