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

Merge fold/map no_break and regular variants #176

Open
zilinc opened this issue Dec 1, 2017 · 0 comments
Open

Merge fold/map no_break and regular variants #176

zilinc opened this issue Dec 1, 2017 · 0 comments

Comments

@zilinc
Copy link

zilinc commented Dec 1, 2017

Issue by ahixon
Thu Apr 9 12:39:44 2015
Originally opened as https://github.csiro.au/ts-filesystems/Cogent/issues/71


Depends on #175

Once these functions return a factored type, one can just bind the LoopResult variant type to a placeholder. The inner function of course will always return an Iterate type.

Example

Before:

 let (arr, acc) = wordarray_map_no_break[U32, (), ()] #{ .. }

After:

 let ((arr, acc), _) = wordarray_map[U32, (), (), ()] #{ .. }
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

1 participant