3 ms·
I use listOf(), setOf() and mapOf(). Longer than literals, right, but not by much. And for exploratory .filter{} and .map{} are much better than Python's awkwa
by deepsun 4y ago
I use listOf(), setOf() and mapOf(). Longer than literals, right, but not by much.
And for exploratory .filter{} and .map{} are much better than Python's awkward map(lambda x: ...) and filter(lambda x: ...).
- zmmmmm 4y agoyes, they are fine at top level, but they fall apart when you try to nest them unfortunately (lists of maps of lists etc ... ). In groovy / javascript / python these just look completely natural.