From 4df60c107b06e41e1424c6116bf0338f56c7a59c Mon Sep 17 00:00:00 2001 From: Brian Rourke Boll Date: Wed, 15 May 2024 13:38:00 -0400 Subject: [PATCH] 1.0.0 * Remove net7.0 target. * Add net8.0 target. --- .../FSharp.Collections.Builders.fsproj | 4 ++-- LICENSE.md | 2 +- README.md | 17 +++++++++++++++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/FSharp.Collections.Builders/FSharp.Collections.Builders.fsproj b/FSharp.Collections.Builders/FSharp.Collections.Builders.fsproj index f5036fa..f366188 100644 --- a/FSharp.Collections.Builders/FSharp.Collections.Builders.fsproj +++ b/FSharp.Collections.Builders/FSharp.Collections.Builders.fsproj @@ -4,7 +4,7 @@ net6.0;net8.0 true FSharp.Collections.Builders - 0.1.0-beta.2 + 1.0.0 Brian Rourke Boll Computation expressions for conveniently and efficiently constructing common collections. git @@ -40,7 +40,7 @@ - + diff --git a/LICENSE.md b/LICENSE.md index efe3146..83b3e68 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Brian Rourke Boll +Copyright (c) 2024 Brian Rourke Boll Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ced976a..1a9c627 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,12 @@ Get it on NuGet: [FSharp.Collections.Builders](https://www.nuget.org/packages/FS dotnet add package FSharp.Collections.Builders ``` -Or try it in a script file: +Or try it in an F# script file (`.fsx`): ```fsx -#r "nuget: FSharp.Collections.Builders, 0.1.0-beta.2" +#r "nuget: FSharp.Collections.Builders" + +open FSharp.Collections.Builders ``` ## API documentation @@ -35,6 +37,17 @@ array, and sequence expressions in that they treat any collection used with `for open FSharp.Collections.Builders ``` +The builders in this namespace don't require any type annotations in situations like this: + +```fsharp +// No need to add a type annotation to xs; +// xs is inferred to have type 'a seq. +let f xs = + resizeArray { + for x in xs -> string x + } +``` + ## Mutable collections from `System.Collections.Generic` ### `resizeArray`