Can higher order functions have generic types? #317
|
Aiken git commit: 0e65fec Compiler is not happy that I put data to function input (v) which is effectively a generic... how to make it work? error If I remove the data from fn I also run into issue: |
Answered by
matiwinnetou
Jan 31, 2023
Replies: 4 comments 2 replies
|
Hey! May you provide:
Thanks 🙏 |
0 replies
|
This seems to work.... but this is really confusing me why: I actually have to specify type on higher order functions - as in input? |
1 reply
|
OK. ignore this, it works when passing data but is confusing I have to say. I have to learn Aiken... My expectation would be something like |
0 replies
|
This works: but I would expect something like this: because data is type not value... |
1 reply
Answer selected by
matiwinnetou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works:
but I would expect something like this:
because data is type not value...