Operation which returns a single value depends upon collection content is known as aggregate function, present in Kotlin collections. minOrNull() and maxOrNull() return the smallest and the largest element respectively. However On empty collections, ...

Markdown supported · ⌘↵ to post
No responses yet.