Does F# have the ternary ?: operator?
Yes, it’s called if .. then .. else In fact in F# everything is an expression, even an if .. then .. else block. In C# var x = true ? 0 : 1; In F# let x = if true then 0 else 1 So in your case: let y = Seq.groupBy (fun x … Read more