We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Below your immutable version using Scala (i.e. foldLeft). I didn't go through the pain of implementing a mutable version using the for comprehension loop.
Looks like Kotlin and Scala are very similar I don't know the case class equivalent in Kotlin
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
Nice immutable implementation
Below your
immutable
version using Scala (i.e. foldLeft). I didn't go through the pain of implementing amutable
version using the for comprehension loop.Looks like Kotlin and Scala are very similar I don't know the
case class
equivalent in Kotlin