DescriptionMake generator argument to Iterable.generate optional.
It defaults to an integer identity function.
Also optimize skip/take on the generated iterable by making it
take hold start and end positions instead of just the count.
R=sgjesse@google.com
Committed: https://code.google.com/p/dart/source/detail?r=34240
Patch Set 1 #Patch Set 2 : Add tests. Fix bugs. #Patch Set 3 : Changed contrustor to not throw on negative count, just cap it to zero. #
Messages
Total messages: 3 (0 generated)
|