News for hackers. Stuff that matters.
Re:Kotlin for Data Analysis by Larrikin on Wednesday August 28, 2024 @09:10PM (#41386218)
Its a small example so the efficiency doesn't matter, but you could use sequences when it does https://kotlinlang.org/docs/sequences.html .

Also the map function lets you perform any operations in it. It was a simple example but you could need to perform something slightly more complex than using another standard library function.

There are no comments on this comment yet.