Skip to content
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

ascending and descending tuple get and set #120

Closed
oscbyspro opened this issue Jun 9, 2023 · 0 comments
Closed

ascending and descending tuple get and set #120

oscbyspro opened this issue Jun 9, 2023 · 0 comments
Labels
addition oh, so shiny!
Milestone

Comments

@oscbyspro
Copy link
Owner

From oscbyspro/Numberick#8

In addition to High and Low initializers (#7), I think I want component accessors:

var  ascending: (low:  Low,  high: High) { get set }
var descending: (high: High, low:  Low ) { get set }

These enable otherwise unergonomic use cases. Imagine passing inout arguments:

mutate(&integer .ascending)
mutate(&integer.descending)
@oscbyspro oscbyspro added the addition oh, so shiny! label Jun 9, 2023
@oscbyspro oscbyspro added this to the v3.0.0 milestone Jun 9, 2023
oscbyspro added a commit that referenced this issue Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition oh, so shiny!
Projects
None yet
Development

No branches or pull requests

1 participant