Open Happypig375 opened 3 years ago
Seems like a reasonable request to me. Currently, the range syntax for list is
let a = [1..10]
Doesn't seem like much harm, to expand it to be able to include multiple ranges or single value like
let a = [-100; 1..10; 100-120]
Yes this is pretty reasonable, especially now yield
is essentially optional
I'll mark it as approved in principle. I'd be interested to know if any problems came from a prototype.
Marking this as approved in principle
Mixing ranges and values to construct sequences
I propose we allow:
The existing way of approaching this problem in F# is
It's annoying to have to insert a whole
yield!
just to add a range.Pros and Cons
The advantages of making this adjustment to F# are
The disadvantage of making this adjustment to F# is none.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): S
Related suggestions: (none)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
For Readers
If you would like to see this issue implemented, please click the :+1: emoji on this issue. These counts are used to generally order the suggestions by engagement.