Skip to content

Allow mixing ranges and values to construct sequences #18670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 58 commits into
base: main
Choose a base branch
from

Conversation

edgarfgp
Copy link
Contributor

@edgarfgp edgarfgp commented Jun 6, 2025

Description

Implements RFC FS-1031: Mixing ranges and values to construct sequences fsharp/fslang-design#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

  • Test cases added
  • Add LanguageFeature
  • RFC
  • Release notes entry updated

Copy link
Contributor

github-actions bot commented Jun 6, 2025

❗ Release notes required


✅ 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

edgarfgp and others added 5 commits June 12, 2025 10:15
@edgarfgp edgarfgp force-pushed the mixed-ranges-prototype branch from 4e713c5 to 5f947fa Compare June 13, 2025 14:30
edgarfgp and others added 9 commits June 13, 2025 21:12
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
@edgarfgp edgarfgp force-pushed the mixed-ranges-prototype branch from e634d66 to 79b2e66 Compare June 14, 2025 13:50
Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
@edgarfgp edgarfgp force-pushed the mixed-ranges-prototype branch from 47a3c68 to 43babe7 Compare June 14, 2025 21:24
@edgarfgp
Copy link
Contributor Author

/azp run

Copy link

Commenter does not have sufficient privileges for PR 18670 in repo dotnet/fsharp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

2 participants