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 issue will just be a place for me to barf ideas about how best to utilize generators within this library.
So far this library doesn't make use of generators whatsoever, which is really a shame. I think it's time we introduce generators somehow. I have a few ideas for this...
Generator Collection Decorator
$coll = newCollection(['blba','babas','asdsad','bleeebloo',3,4,5,6]);
$gencoll = newGeneratorDecorator($coll);
// now $gencoll can be used exactly as you would use $coll, only now its values are yielded
But no that wouldn't work because generators can only go one way (and they can only be looped over once). So what would be a more appropriate use for generators here? Well there's this: #80.
Another good use of generators would be for things like #46. When doing things like this:
This issue will just be a place for me to barf ideas about how best to utilize generators within this library.
So far this library doesn't make use of generators whatsoever, which is really a shame. I think it's time we introduce generators somehow. I have a few ideas for this...
Generator Collection Decorator
But no that wouldn't work because generators can only go one way (and they can only be looped over once). So what would be a more appropriate use for generators here? Well there's this: #80.
Another good use of generators would be for things like #46. When doing things like this:
The text was updated successfully, but these errors were encountered: