partition() filters a collection by a predicate and makes Pair of Lists, the first list containing elements from collection that matches the predicate and the second one containing rest of the element. val games = listOf("unity", "unreal", "godot", ...

Markdown supported · ⌘↵ to post
No responses yet.