Does anyone know if lambdas can have extension fun...
# functional
i
Does anyone know if lambdas can have extension functions? By the looks of it I assume not but I'm not sure why they shouldn't.
r
Copy code
val giefString: () -> String = { "a lambda" }

fun (() -> String).pew() = 
    println("I have ${ invoke() } as a receiver :o")
    
fun main() { giefString.pew() }
❤️ 5
i
Nice! I was apparently using the syntax wrong. Thanks!
w
Cool