Skip to content

Commit 375cc43

Browse files
committed
remove combineEnhancers
1 parent 57fae50 commit 375cc43

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/src/commonMain/kotlin/org/reduxkotlin/CombineEnhancers.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/src/commonMain/kotlin/org/reduxkotlin/Compose.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ package org.reduxkotlin
44
* Composes a list of single argument functions from right to left.
55
*/
66
fun <T> compose(vararg functions: (T) -> T): (T) -> T =
7-
{ x -> functions.foldRight(x, { f, composed -> f(composed) })
8-
}
7+
{ x -> functions.foldRight(x, { f, composed -> f(composed) }) }
98

109
fun <T> compose(functions: List<(T) -> T>): (T) -> T =
11-
{ x -> functions.foldRight(x, { f, composed -> f(composed) })
12-
}
10+
{ x -> functions.foldRight(x, { f, composed -> f(composed) }) }

0 commit comments

Comments
 (0)