Created
February 11, 2020 13:04
-
-
Save SylvainHocq/9eb80b8c21c14f4cea8fb0f59459b4d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun composeTransformer(vararg transformers: Transformer<Any, Any>): Transformer<Any, Any> { | |
return Transformer { t -> | |
var resultObservable = t | |
transformers.forEach { | |
resultObservable = resultObservable.compose(it) | |
} | |
resultObservable | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment