Scoop API

scoop:scoop.std:0.1.0

sortedWith

function sortedWith

source · line 14
public
public fun <T> Sequence<T>.sortedWith(comparator: Comparator<T>): Sequence<T>

Extension receiver: Sequence<T>

Evaluation is deferred until iteration. Creates a lazy sequence that materializes a stable sorted copy using the supplied comparator. Each traversal materializes the complete input before yielding results.