Destructuring in Kotlin

67 views
Skip to first unread message

Alan Thompson

unread,
Mar 25, 2020, 11:25:58 AM3/25/20
to clojure
I was just reading an article on Kotlin and noticed they have nearly identical destructuring syntax as in Clojure:
for ((k, v) in map) { println(“$k -> $v”) }

Kotlin can also be compiled into JavaScript ES5.1 to target browsers, just like with ClojureScript.





Reply all
Reply to author
Forward
0 new messages