Re:Kotlin for Data Analysis
by rbehrends on Wednesday August 28, 2024 @11:20PM
(#41386949)
Like this?
Now, technically, Kotlin doesn't have list comprehensions, only the equivalent of generator expressions in Python, so you have to tack an extra `.toList()` on at the end if you want a list, but you can write pretty much any for comprehension in Python in a similar way in Kotlin.
[ Parent
| on HN ]