Is there a shorter notation for identity function (fun x -> x), other then defining your own? Writing
Seq.countBy (fun x -> x)
looks so wordy.
There is a short version id
which is equal to fun x -> x
Also, for your case you can just do Seq.sort
countBy
(edited the question). id
is what I was looking for, thank you.
Mar 16, 2013 at 5:05
countBy
, sum
does something else.
Mar 16, 2013 at 5:14