Created
September 10, 2014 20:14
-
-
Save PatrickMcDonald/6f1f3c6725c204bd41cd to your computer and use it in GitHub Desktop.
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
[<CompiledName("SortByDescending")>] | |
let sortByDescending keyf source = | |
checkNonNull "source" source | |
mkDelayedSeq (fun () -> | |
let keyf = System.Func<_,_>(keyf) | |
let res = System.Linq.Enumerable.OrderByDescending(source, keyf) | |
res :> seq<_>) | |
[<CompiledName("SortDescending")>] | |
let sortDescending source = | |
checkNonNull "source" source | |
mkDelayedSeq (fun () -> | |
let keyf = System.Func<_,_>(id) | |
let res = System.Linq.Enumerable.OrderByDescending(source, keyf) | |
res :> seq<_>) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment