Do we have something like @autolambda? Use case is...
# language-proposals
k
Do we have something like @autolambda? Use case is to create an automatic lambda around the expression such as
Copy code
public fun sth(f: () -> String) {
    if (f() == “hello") {
        
    }
}

sth( { “hello" })

public fun sth(@autolambda f: () -> String) {
    if (f() == “hello") {
        
    }
}

sth(“hello”)