fsharp
fsharp copied to clipboard
Allow mixing ranges and values to construct sequences
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
:heavy_exclamation_mark: Release notes required
:white_check_mark: Found changes and release notes in following paths:
Change path Release notes path Description src/Compilerdocs/release-notes/.FSharp.Compiler.Service/10.0.100.md LanguageFeatures.fsidocs/release-notes/.Language/preview.md