高效的,不可变的,.NET扩展集合 [英] Efficient, Immutable, Extensible Collections for .NET
问题描述
在我看来,有一个极度缺乏安全的,不可变的集合类型的.NET,特别是BCL,但我从来没见过完成的工作量之外的任一。不要任何人有任何指针到(preferably)生产的优质,快捷,不变的集合库为.NET。快速列表类型是必不可少的。我还没有prepared切换到F#。
It seems to me there is an extreme lack of safe, immutable collection types for .NET, in particular BCL but I've not seen much work done outside either. Do anyone have any pointers to a (preferably) production quality, fast, immutable collections library for .NET. A fast list type is essential. I'm not yet prepared to switch to F#.
*编辑:注意搜索,这是被很快驶入了BCL:<一href=\"http://blogs.msdn.com/b/bclteam/archive/2012/12/18/$p$pview-of-immutable-collections-released-on-nuget.aspx\"相对=nofollow>。NET不可改变的集合
* Note to searchers, this is being rolled into the BCL soon: .NET immutable collections
推荐答案
您可能想看一看的<一个href=\"http://msdn.microsoft.com/en-us/library/ee353413.aspx\"><$c$c>Microsoft.FSharp.Collections$c$c>命名空间中的 FSharp.Core
组装。您不要在F#编程利用这些类型的。
You might want to take a look at the Microsoft.FSharp.Collections
namespace in the FSharp.Core
assembly. You do not have to program in F# to make use of these types.
请从外部F#中使用时的名称会有所不同。例如,地图
F#中被称为 FSharpMap
从C#。
Keep in mind that the names will be different when used from outside F#. For example, the Map
in F# is known as FSharpMap
from C#.
这篇关于高效的,不可变的,.NET扩展集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!