Skip to content

Conversation

@brianrourkeboll
Copy link
Owner

@brianrourkeboll brianrourkeboll commented Jan 28, 2024

This extends dotnet#16577 to handle all built-in integral types—int32, uint32, int64, uint64, int16, uint16, nativeint, unativeint, sbyte, byte, char—and arbitrary steps—[|start..step..finish|], [start..step..finish].

I could add tests for all of the supported types, but if I copied all of the tests for every type, this PR would end up adding close to 25,000 lines, which seems somewhat excessive... The arithmetic for determining count/length should already be apparent in the IL in the int32/int64 tests, and it should be valid for unsigned types as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants