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:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hey! May you provide:
Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
-
This seems to work.... but this is really confusing me why:
I actually have to specify type on higher order functions - as in input? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
This works:
but I would expect something like this:
because data is type not value... |
Beta Was this translation helpful? Give feedback.
This works:
but I would expect something like this:
because data is type not value...