Created
November 4, 2022 21:00
-
-
Save Decencies/cecab267a7c99c9c297db8f57be07a77 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
/** | |
* Creates a pipeline associated to this block. | |
* | |
* @param [I] the current block's input. | |
* @param [O] the current block's output. | |
* @param [K] the resulting block's output. | |
* | |
* @return a block of type ([I]) -> [K]. | |
*/ | |
operator fun <I, O, K> ((I) -> O).plus(next: (O) -> K): (I) -> K = { input -> next(this(input)) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment