You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package fills a great omission in Julia (I don't understand why things can't be just as simple as in python---I get the impression that things are better and more general in Julia with tasks and coroutines, and even better things that outdate these, but I can't figure out how to use them).
However, here @yield should produce all but the last element, and last element should be the return value of the resumable function.
That is not handy.
Having julia have base-1 indexing is already not handy for many purposes, but then having to deal with the last element separately make code even hairier.
It would be great if @yield would just return all elements.
The text was updated successfully, but these errors were encountered:
Hi,
This package fills a great omission in Julia (I don't understand why things can't be just as simple as in python---I get the impression that things are better and more general in Julia with tasks and coroutines, and even better things that outdate these, but I can't figure out how to use them).
However, here
@yield
should produce all but the last element, and last element should be the return value of the resumable function.That is not handy.
Having julia have base-1 indexing is already not handy for many purposes, but then having to deal with the last element separately make code even hairier.
It would be great if
@yield
would just return all elements.The text was updated successfully, but these errors were encountered: