Summatic.FSUtils 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Summatic.FSUtils --version 0.1.0
                    
NuGet\Install-Package Summatic.FSUtils -Version 0.1.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="Summatic.FSUtils" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Summatic.FSUtils" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Summatic.FSUtils" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Summatic.FSUtils --version 0.1.0
                    
#r "nuget: Summatic.FSUtils, 0.1.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.
#:package Summatic.FSUtils@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Summatic.FSUtils&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Summatic.FSUtils&version=0.1.0
                    
Install as a Cake Tool

FSUtils

General-purpose F# utilities, extracted from the Summatic app. Published as Summatic.FSUtils; the namespace is FSUtils.

Everything here is allocation-conscious, trimming-friendly and AOT-friendly: no reflection, ValueOption rather than Option, ImmutableArray rather than list, and no sprintf.

Contents

Module What it gives you
ImmArray The ImmutableArray module FSharp.Core doesn't ship: map, chooseV, groupBy, mapFold, partition and about 80 more, all InlineIfLambda and builder-based. Lookups return voption.
ImmA2D, A2D An immutable 2D array with structural equality, backed by a row-major ImmutableArray, and 0-based Array2D replacements.
Equals, Hash, Compare Helpers for implementing IEquatable<'T> and IComparable<'T> over arrays, 2D arrays and tuples, instead of relying on F# structural equality.
Result, ValueOption, Task, Async, Tuple The missing combinators, notably Result.ofImmArrayMap and ValueOption.ofImmArrayMap, which short-circuit.
Instant A struct UTC timestamp. Non-UTC input is rejected rather than silently reinterpreted.
Parse voption-returning, invariant-culture parsers for int, float, Guid and Complex.
Json Result-returning System.Text.Json accessors that check the value kind instead of throwing.
Measure Conversions that keep units of measure attached, so float/float32 casts cannot silently drop them.
Seq, Array A few additions, notably distinctPhysical, which is distinct by reference rather than by an overridden Equals.
NonGenericWorkaround Type-checked Equals/CompareTo for the non-generic overrides, which F# otherwise routes through structural equality (dotnet/fsharp#9398).
SimpleLazy Lazy<'T> without the trimming warnings.
Builders maybe, vmaybe and result computation expressions.
withLock lock over System.Threading.Lock, engaging its fast path (dotnet/fsharp#17287).

Requirements

.NET 10, and F# nullable reference types enabled (<Nullable>enable</Nullable>).

Notes

Opening FSUtils brings modules named Seq, Array, Result, ValueOption, Task and Async into scope, which augment the FSharp.Core modules of the same name. It also auto-opens extensions to Dictionary, Guid, ImmutableArray and TimeSpan.

Tests

dotnet run --project Tests/Tests.fsproj

Licence

MIT.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Summatic.FSUtils:

Package Downloads
ModeMath

Mathematical formula display and editing for .NET, rendered with SkiaSharp. Reads and writes math-mode LaTeX, lays a formula out from the OpenType MATH table, and edits one with a cursor in it.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.1 93 9/18/2026
0.8.0 106 9/14/2026
0.7.0 110 9/12/2026
0.6.0 101 9/11/2026
0.5.0 101 9/11/2026
0.4.0 104 9/10/2026
0.3.2 111 9/7/2026
0.3.1 114 9/6/2026
0.3.0 472 8/21/2026
0.2.0 335 8/20/2026
0.1.0 109 8/20/2026