I am learning kotlin, and just implemented some si...
# announcements
b
I am learning kotlin, and just implemented some simple stream processing code with a SAM style transform interface:
Copy code
interface ByteArrayTransformer {
    fun transform(input: ByteArray): ByteArray
}
Doing so enabled things like wrapping transformers with timers, logging, etc. by extension functions. Does Kotlin have the means to declare a typed function signature, so that I could drop the reliance on classes, and fully open the door to closures, without having to declare the same func signature all over the place?