Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
* Remove net7.0 target.

* Add net8.0 target.
  • Loading branch information
brianrourkeboll committed May 15, 2024
1 parent 16ed613 commit 4df60c1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>FSharp.Collections.Builders</PackageId>
<Version>0.1.0-beta.2</Version>
<Version>1.0.0</Version>
<Authors>Brian Rourke Boll</Authors>
<Description>Computation expressions for conveniently and efficiently constructing common collections.</Description>
<RepositoryType>git</RepositoryType>
Expand Down Expand Up @@ -40,7 +40,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down

0 comments on commit 4df60c1

Please sign in to comment.