Partial body resolve filter works more precisely for if-statements

This commit is contained in:
Valentin Kipyatkov
2015-03-24 22:24:13 +03:00
parent 7a414336c1
commit 176ba937ba
11 changed files with 150 additions and 27 deletions
@@ -53,4 +53,6 @@ public inline fun <reified T> Array<*>.firstIsInstance(): T {
throw NoSuchElementException("No element of given type found")
}
public fun <T> streamOfLazyValues(vararg elements: () -> T): Stream<T> = elements.stream().map { it() }
public fun <T> streamOfLazyValues(vararg elements: () -> T): Stream<T> = elements.stream().map { it() }
public fun <T1, T2> Pair<T1, T2>.swap(): Pair<T2, T1> = Pair(second, first)