-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an iterator multi candidate to Supply
A problem with Seq and List supply coercions was that take could be used inside of them, which would mix values taken with those that are actually emitted by the supply in the coercion. Instead of using gather to handle coercions in the first place, this adds an iterator method to Supply to handle that for these two methods. Because of this, Supply.list no longer needs to create a throwaway Seq to coerce to a List.
- Loading branch information
Showing
1 changed file
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters