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

How do I make an empty HVecF? #4

Open
kozross opened this issue Sep 4, 2018 · 1 comment
Open

How do I make an empty HVecF? #4

kozross opened this issue Sep 4, 2018 · 1 comment

Comments

@kozross
Copy link

kozross commented Sep 4, 2018

My understanding is that I have to use constructF, but I cannot understand how I would use it, since it seems to return a function.

@Shimuuar
Copy link
Owner

Shimuuar commented Sep 7, 2018

If you want to construct vector v f where ElemF v ~ '[] then you indeed can use constructF. In that case its type is TFun f '[] (v f). Now TFun is just newtype over Fn f '[] (v f) ~ v f. So what you need is just: unTFun constructF

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

No branches or pull requests

2 participants