3 ms·
Technically its passing 'a list -> 'a list, and only becoming an int array because thats the final input value. The fsharp functions are closer to the C# functi
by AdeptusAquinas 8y ago
Technically its passing 'a list -> 'a list, and only becoming an int array because thats the final input value. The fsharp functions are closer to the C# functions Func<List<IComparable>, List<IComparable>>
- algorithmsRcool 8y agoOr to be even more pedantic it's Func<T[], T[]> where T : IComparable<T> But maybe all of that is just stronger arguments for F#'s inferred typing...
- AdeptusAquinas 8y agoOr to be even mooooooore pedantic the fsharp functions would probably be written to be seq<'a> -> seq<'a>, so that would be Func<IEnumerable<T>, IEnumerable<T>> where T : IComparable<T> :)