I have code that is shared between F# and C# and I need to convert between the C# HashSet and the F# Set. Is there an easy way to do this?
there are additional constraints on the types used for a F#-Set - if you can support them you can just use Set.ofSeq to convert it from your HashSet - but I would just use the original HashSet (maybe encapsulated) - no need for the additional work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With