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

Add maybeResize (and friends) #2779

Closed
martijnbastiaan opened this issue Jul 29, 2024 · 0 comments · Fixed by #2780
Closed

Add maybeResize (and friends) #2779

martijnbastiaan opened this issue Jul 29, 2024 · 0 comments · Fixed by #2780

Comments

@martijnbastiaan
Copy link
Member

We have resize, a function that can truncate by throwing away bits. We also have checkedResize, a function that does the same, but throws an error in simulation if the value of the argument does not fit in the result type. Ideally, we'd also have a total function that returns a Maybe instead.

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

Successfully merging a pull request may close this issue.

1 participant