Created
November 25, 2016 15:17
-
-
Save io7m/f97226a950c17470ea0ca7f7c08d647f to your computer and use it in GitHub Desktop.
sortedMapOf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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