How do I pass a function as an argument if it’s in...
# announcements
d
How do I pass a function as an argument if it’s in another class? I mean this code works:
Copy code
fun lol1(name: String) = app().api.sendBreaks(name)
   send(projectId,  breaks, ::lol1)
But this one, don’t:
Copy code
send(
                projectId,
                breaks,
                ::app().api.sendBreaks(name)
        )