Skip to main content
Update answer according to comment.
Source Link
sakra
  • 5.2k
  • 22
  • 34

The straight forward solution is to simply count the number of timespoints you have invoked Sowsown, i.e.:

big = Module[
    {count = 0},
    Reap[
        While[ count < 100, Sow[fakeData[20]];count ++count+= Length@Sow[fakeData[20]] ]
    ][[2,1]]
]

The straight forward solution is to simply count the number of times you have invoked Sow, i.e.:

big = Module[
    {count = 0},
    Reap[
        While[ count < 100, Sow[fakeData[20]]; ++count ]
    ][[2,1]]
]

The straight forward solution is to simply count the number of points you have sown, i.e.:

big = Module[
    {count = 0},
    Reap[
        While[ count < 100, count += Length@Sow[fakeData[20]] ]
    ][[2,1]]
]
Source Link
sakra
  • 5.2k
  • 22
  • 34

The straight forward solution is to simply count the number of times you have invoked Sow, i.e.:

big = Module[
    {count = 0},
    Reap[
        While[ count < 100, Sow[fakeData[20]]; ++count ]
    ][[2,1]]
]