From b75c074e54adb32b27b0b94fe574140cc39c5ae6 Mon Sep 17 00:00:00 2001 From: kerams Date: Sat, 30 May 2026 09:31:42 +0200 Subject: [PATCH 1/3] Add InlineIfLambda to Array.init --- src/FSharp.Core/array.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FSharp.Core/array.fs b/src/FSharp.Core/array.fs index 611b632a4e8..967285a909b 100644 --- a/src/FSharp.Core/array.fs +++ b/src/FSharp.Core/array.fs @@ -47,7 +47,7 @@ module Array = Some array.[array.Length - 1] [] - let inline init count initializer = + let inline init count ([] initializer) = Microsoft.FSharp.Primitives.Basics.Array.init count initializer [] From 4a3b45a0188fe089658f04bb766aea0ff72b87b9 Mon Sep 17 00:00:00 2001 From: kerams Date: Sat, 30 May 2026 09:40:26 +0200 Subject: [PATCH 2/3] Update FSharp.Core release notes for version 11.0.100 Added InlineIfLambda to Array.init documentation. --- docs/release-notes/.FSharp.Core/11.0.100.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/release-notes/.FSharp.Core/11.0.100.md b/docs/release-notes/.FSharp.Core/11.0.100.md index 70bbaae06fe..f5369d2d5a5 100644 --- a/docs/release-notes/.FSharp.Core/11.0.100.md +++ b/docs/release-notes/.FSharp.Core/11.0.100.md @@ -2,3 +2,4 @@ * Fix `Array.exists2` documentation examples to use equal-length arrays; the previous examples would throw `ArgumentException` at runtime instead of returning the documented `false`/`true` values. ([PR #19672](https://github.com/dotnet/fsharp/pull/19672)) * Move `Async.StartChild` to the "Starting Async Computations" docs category alongside `Async.StartChildAsTask`. ([Issue #19667](https://github.com/dotnet/fsharp/issues/19667)) +* Add InlineIfLambda to Array.init ([PR #19672](https://github.com/dotnet/fsharp/pull/19869)) From a8680f4fa195bd6d363500fac81aa263bb163332 Mon Sep 17 00:00:00 2001 From: kerams Date: Sat, 30 May 2026 14:04:53 +0200 Subject: [PATCH 3/3] Fix release notes --- docs/release-notes/.FSharp.Core/11.0.100.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release-notes/.FSharp.Core/11.0.100.md b/docs/release-notes/.FSharp.Core/11.0.100.md index f5369d2d5a5..7d0385e3b89 100644 --- a/docs/release-notes/.FSharp.Core/11.0.100.md +++ b/docs/release-notes/.FSharp.Core/11.0.100.md @@ -2,4 +2,4 @@ * Fix `Array.exists2` documentation examples to use equal-length arrays; the previous examples would throw `ArgumentException` at runtime instead of returning the documented `false`/`true` values. ([PR #19672](https://github.com/dotnet/fsharp/pull/19672)) * Move `Async.StartChild` to the "Starting Async Computations" docs category alongside `Async.StartChildAsTask`. ([Issue #19667](https://github.com/dotnet/fsharp/issues/19667)) -* Add InlineIfLambda to Array.init ([PR #19672](https://github.com/dotnet/fsharp/pull/19869)) +* Add `InlineIfLambda` to `Array.init` ([PR #19869](https://github.com/dotnet/fsharp/pull/19869))