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

Feature request: list->period #22

Open
jackfirth opened this issue Dec 31, 2016 · 1 comment
Open

Feature request: list->period #22

jackfirth opened this issue Dec 31, 2016 · 1 comment

Comments

@jackfirth
Copy link

I'm writing a *period function to let me scale periods, for example doubling (period [months 1] [hours 3])to (period [months 2] [hours 6]). I was hoping to do this by calling period->list, scaling the amount part of each unit-amount pair, and then converting the new list of units and amounts back to a period with list->period. To my dismay, that procedure doesn't exist. It would have been a nice to have in this instance.

@97jaz
Copy link
Owner

97jaz commented Dec 31, 2016

Yeah, this should be possible.
Also, I have no problem providing a period-scale directly.

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

No branches or pull requests

2 participants