Returning anonymous function does not always work #597
-
This compiles without problems However, returning an anonymous function instead, does not:
Why does this error occur only in the latter case? |
Beta Was this translation helpful? Give feedback.
Answered by
TimWhiting
Oct 23, 2024
Replies: 1 comment 1 reply
-
The problem here is that calling stream/repeat returns a function and you want to call it still. Try this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chtenb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem here is that calling stream/repeat returns a function and you want to call it still.
Try this: