Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sortedMapOf
private static <K, V> SortedMap<K, V> sortedMapOf(
final Value<V> seq,
final Function<V, K> key)
{
return TreeMap.of(seq.map(v -> Tuple.of(key.apply(v), v)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment