[![Download](https://api.bintray.com/packages/robstoll/tutteli-jars/kbox/images/download.svg) ](https://bintray.com/robstoll/tutteli-jars/kbox/_latestVersion)
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
[![Build Status](https://travis-ci.org/robstoll/kbox.svg?tag=v0.10.0.0)](https://travis-ci.org/robstoll/kbox)
<!-- too many inline functions, have to wait for jacoco update:
[![Coverage](https://codecov.io/github/robstoll/kbox/coverage.svg?tag=v0.10.0)](https://codecov.io/github/robstoll/kbox?tag=v0.10.0)
-->
# KBox
KBox is a very small but useful utility library for Kotlin (JVM and JS).
Current extension functions:
- [`Array/List/Iterable/Sequence.appendtoStringBuilder`](https://github.com/robstoll/kbox/tree/v0.10.0/kbox-common/src/main/kotlin/ch/tutteli/kbox/appendToString.kt#L37)
with the ability to define a different separator for the last separation
=> handy if you want to form sentences like `a, b and c`
- [`forEachIn(Array/Iterable/Sequence<E>, Array/Iterable/Sequence<E>, ..., action: (E) -> Unit)`](https://github.com/robstoll/kbox/tree/v0.10.0/kbox-common/src/main/kotlin/ch/tutteli/kbox/forEachIn.kt#L6)
applies the given action to each entry in the given `Iterable`s.
- [`<E> forElementAndEachIn(E, Iterable/Sequence<E>, action: (E) -> Unit)`](https://github.com/robstoll/kbox/tree/v0.10.0/kbox-common/src/main/kotlin/ch/tutteli/kbox/forThisAndForEach.kt#L6)
applies the given action to `this` and each entry in Iterable