11<!-- for main -->
2-
3- [ ![ Download] ( https://img.shields.io/badge/Download-0.16. 0-%23007ec6 )] ( https://search.maven.org/artifact/ch.tutteli.kbox/kbox/0.16 .0/jar )
2+ <!--
3+ [](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/1.0 .0/jar)
44[](http://opensource.org/licenses/Apache2.0)
55[](https://github.com/robstoll/kbox/actions?query=workflow%3AUbuntu+branch%3Amain)
66[](https://github.com/robstoll/kbox/actions?query=workflow%3AWindows+branch%3Amain)
77[](https://sonarcloud.io/dashboard?id=robstoll_kbox)
8-
8+ -->
99
1010<!-- for a specific release -->
11- <!--
12- [](https://search.maven.org/artifact/ch.tutteli.kbox/kbox/0.15.1 /jar)
11+
12+ [ ![ Download] ( https://img.shields.io/badge/Download-1.0.0 -%23007ec6 )] ( https://search.maven.org/artifact/ch.tutteli.kbox/kbox/1.0.0 /jar )
1313[ ![ Apache license] ( https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg )] ( http://opensource.org/licenses/Apache2.0 )
14- -->
14+
1515
1616# KBox
1717KBox is a very small but useful utility library for Kotlin (JVM, Android and JS).
1818
1919Current extension functions:
20- - [ ` Array/List/Iterable/Sequence.appendtoStringBuilder ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/appendToString.kt#L37 )
20+ - [ ` Array/List/Iterable/Sequence.appendtoStringBuilder ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/appendToString.kt#L37 )
2121 with the ability to define a different separator for the last separation
2222 => handy if you want to form sentences like ` a, b and c `
2323
24- - [ ` CharSequence.blankToNull ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/blanktoNull.kt#L7 )
24+ - [ ` CharSequence.blankToNull ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/blanktoNull.kt#L7 )
2525 returns the same ` CharSequence ` if not blank, ` null ` otherwise
2626
27- - [ ` forEachIn(Array/Iterable/Sequence<E>, Array/Iterable/Sequence<E>, ..., action: (E) -> Unit) ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/forEachIn.kt#L6 )
27+ - [ ` forEachIn(Array/Iterable/Sequence<E>, Array/Iterable/Sequence<E>, ..., action: (E) -> Unit) ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/forEachIn.kt#L6 )
2828 applies the given action to each entry in the given ` Iterable ` s.
2929
30- - [ ` <E> forElementAndEachIn(E, Array/Iterable/Sequence<E>, action: (E) -> Unit) ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/forThisAndForEach.kt#L6 )
30+ - [ ` <E> forElementAndEachIn(E, Array/Iterable/Sequence<E>, action: (E) -> Unit) ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/forThisAndForEach.kt#L6 )
3131 applies the given action to ` this ` and each entry in Iterable
3232
33- - [ ` Iterable<T>.forEachRemaining() ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/forEachRemaining.kt#L9 )
33+ - [ ` Iterable<T>.forEachRemaining() ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/forEachRemaining.kt#L9 )
3434 shortcut for ` while(hasNext()) yourLambda(next()) `
3535
36- - [ ` Array/List.ifWithinBound ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/ifWithinBound.kt#L13 )
36+ - [ ` Array/List.ifWithinBound ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/ifWithinBound.kt#L13 )
3737 shortcut for ` if(index < size){ thenBlock() } else { elseBlock() } `
3838
39- - [ ` CharSequence?.isNotNullAndNotEmpty/isNotNullAndNotBlank ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt#L6 )
39+ - [ ` CharSequence?.isNotNullAndNotEmpty/isNotNullAndNotBlank ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt#L6 )
4040
41- - [ ` Array/List/Iterable/Sequence.joinToString ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/joinToString.kt#L31 )
41+ - [ ` Array/List/Iterable/Sequence.joinToString ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/joinToString.kt#L31 )
4242 with the ability to define a different separator for the last separation
4343 => handy if you want to form sentences like ` a, b and c `
4444
45- - [ ` Map<T, T>.mapParents ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/mapParents.kt#L13 )
45+ - [ ` Map<T, T>.mapParents ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/mapParents.kt#L13 )
4646 maps child-parent relations.
4747
48- - [ ` Iterator<T>.mapRemaining/mapRemainingWithCounter ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/mapRemaining.kt#L9 )
48+ - [ ` Iterator<T>.mapRemaining/mapRemainingWithCounter ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/mapRemaining.kt#L9 )
4949 maps remaining entries with the help of a transform function (where ` mapRemainingWithCounter ` passes a counter variable to the transform function).
5050
51- - [ ` Array/Iterable/Sequence.mapWithIndex ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/mapWithIndex.kt#L11 )
51+ - [ ` Array/Iterable/Sequence.mapWithIndex ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/mapWithIndex.kt#L11 )
5252
53- - [ ` Iterator.toPeekingIterator() ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/PeekingIteratorUnsynchronized.kt )
53+ - [ ` Iterator.toPeekingIterator() ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/PeekingIteratorUnsynchronized.kt )
5454 which allows to have a look what the next element is without consuming it.
5555
56- - [ ` varargsToList/glue ` ] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/varargToList.kt#L11 )
56+ - [ ` varargsToList/glue ` ] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/varargToList.kt#L11 )
5757 creates a ` List ` out of a single ` E ` and an ` Array<E> ` .
5858
5959Moreover, the following function might come in handy for you as well:
60- - [ identity] ( https://github.com/robstoll/kbox/tree/main /src/commonMain/kotlin/ch/tutteli/kbox/identity.kt )
60+ - [ identity] ( https://github.com/robstoll/kbox/tree/v1.0.0 /src/commonMain/kotlin/ch/tutteli/kbox/identity.kt )
6161
6262# Installation
6363
@@ -66,7 +66,7 @@ KBox is published to maven central.
6666```
6767repositories { mavenCentral() }
6868dependencies {
69- implementation("ch.tutteli.kbox:kbox-jvm:0.16 .0")
69+ implementation("ch.tutteli.kbox:kbox-jvm:1.0 .0")
7070}
7171```
7272
0 commit comments