fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Allow mixing ranges and values to construct sequences

Open edgarfgp opened this issue 8 months ago • 3 comments

Description

Implements RFC FS-1031: Mixing ranges and values to construct sequences https://github.com/fsharp/fslang-design/pull/804

Before

let a = seq { yield! seq { 1..10 }; 19 }
let b = [-3; yield! [1..10]]
let c = [|-3; yield! [|1..10|]; 19|]

After

let a = seq { 1..10; 19 }
let b = [-3; 1..10]
let c = [|-3; 1..10; 19|]

Checklist

  • [x] Test cases added
  • [x] Add LanguageFeature
  • [x] RFC
  • [x] Release notes entry updated

edgarfgp avatar Jun 06 '25 15:06 edgarfgp

:heavy_exclamation_mark: Release notes required


:white_check_mark: Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/10.0.100.md
LanguageFeatures.fsi docs/release-notes/.Language/preview.md

github-actions[bot] avatar Jun 06 '25 15:06 github-actions[bot]