简体   繁体   中英

Convert C# HashSet to F# Set

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?

对于用于F# -Set的类型还有其他限制 - 如果你可以支持它们,你可以使用Set.ofSeq将它从你的HashSet转换 - 但我只是使用原始的HashSet(可能是封装的) - 不需要额外的工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM