greycat icon indicating copy to clipboard operation
greycat copied to clipboard

Loop task behaviour is somehow misleading

Open gnain opened this issue 7 years ago • 2 comments

when the loop task is called like loop(0, 2, <Task>the <Task> is executed 3 times, with indexes 0,1,2 It would be better to have an api with, for instance: loop(, <initialIndex>, <Task>) and maybe another forLoop(<initialIndex>, <maxIndex>, <Task>) // where maxIndex is never reached

gnain avatar Jun 13 '17 08:06 gnain

@dukeboard You already fixed in v.8 right ?

gnain avatar Jun 14 '17 15:06 gnain

nop i fixed the traverseTimeline bounds but with has right know as well the inclusive semantic. Loop and traverseTimeline are consistent so if we decide to change we should apply it for both

dukeboard avatar Jun 14 '17 16:06 dukeboard