Kt So Work [ LEGIT ⚡ ]
For now, here's a — if you meant a custom Kotlin scope function so that logs before executing a block:
// feature: "kt so" - a 'so' scope function for Kotlin inline fun <T, R> T.so(block: T.() -> R): R { println("[SO] executing on $this") return block() } // Usage data class Person(val name: String) For now, here's a — if you meant
fun main() { val person = Person("Alice") val result = person.so { println("Inside so block: $name") "Length: ${name.length}" } println(result) } T.so(block: T.() ->
Output:

