I have read the answers from How to enumerate a discriminated union in F#?
And I like the solution suggested: solution
However, I am not sure how to write a function where I would pass the discriminated union as argument?
let testDisUnion a =
SimpleUnionCaseInfoReflection.AllCases<a>
|> Seq.iter (fun (_, instance) -> printfn "name: %s" instance)
Thank you