so this was driving me crazy for the last half hou...
# announcements
n
so this was driving me crazy for the last half hour (took some kind to find it in my code)
Copy code
println { "" }
prints:
() -> kotlin.String
is that because println accepts Any so i can pass it a KFunction<String> ? i think there should be a println overload that takes
() -> Any
and passes it to the normal println after executing
n
Yep, it uses the string representation of the function
You can add your own top-level method