ImTools 4.0.0

There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 3.3.0 or higher.

dotnet add package ImTools --version 4.0.0                
NuGet\Install-Package ImTools -Version 4.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ImTools" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImTools --version 4.0.0                
#r "nuget: ImTools, 4.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ImTools as a Cake Addin
#addin nuget:?package=ImTools&version=4.0.0

// Install ImTools as a Cake Tool
#tool nuget:?package=ImTools&version=4.0.0                

Immutable persistent collections, algebraic sum-type aka descriminated union, Ref type and supportive extensions for performant functional programming in C#.
       Split from the DryIoc: https://github.com/dadhi/DryIoc

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ImTools:

Package Downloads
Baseline

Grab bag of generic utilities and extension methods for .Net development

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on ImTools:

Repository Stars
seesharper/LightInject
An ultra lightweight IoC container
JasperFx/baseline
Grab bag of generic utilities and extension methods for .Net development
Version Downloads Last updated
5.0.0-preview-01 108 5/23/2024
4.0.0 559,651 7/25/2022
3.1.0 2,328 5/10/2021
3.0.0 3,120 3/24/2021
2.1.0 2,655 6/28/2020
2.0.0 2,658 1/24/2020
2.0.0-preview-01 2,281 12/18/2019
1.0.0 10,694 9/30/2017
1.0.0-preview-05 2,902 6/19/2017
1.0.0-preview-04 2,779 6/19/2017
1.0.0-preview-03 2,733 4/4/2017
1.0.0-preview-02 2,681 3/29/2017
1.0.0-preview-01 2,777 3/3/2017

## v4.0.0 Major release

### Breaking changes

`ImMap<V>` type is replaced by `ImHashMap<int, V>`.
The implementations of ImMap and ImHashMap are combined into one, reducing the code size, and using all performance optimizations from the both.
This change will simplify further performance improvements, testing and bug-fixes.

I have tried to keep the API as similar as possible,
but you may expect that some types and methods were renamed, or new overloads were added.

### Performance and memory improvements

- Fewer allocations (~10%), see the benchmarks in project readme
- Keeping the performance almost the same

### Closed issues

- #41 Add a builder-like capability to the ImHashMap via BuildFromDifferent methods
- #47 Add output of the ImHashMap as mermaid diagram, e.g. `ToMermaidString` method
- #48 Merge the ImMap and ImHashMap implementations
- #50 Optimize Enumerable for the PartitionedHashMap
- #51 Reduce ImHashMap memory allocations, keeping the speed
- #52 Add AddSureNotPresent methods to compensate for GetSurePresent methods