Closed dfalbel closed 4 years ago
Iterate will always return a NULL when finishing the iteration. Can we make this invisible?
NULL
library(flowery) iterate( for (x in as_iterator(1:3)) { print(x) } ) #> [1] 1 #> [1] 2 #> [1] 3 #> NULL
Created on 2019-04-17 by the reprex package (v0.2.1)
That makes sense, this would be consistent with for.
for
Ok! I can make a PR for this later today
Iterate will always return a
NULL
when finishing the iteration. Can we make this invisible?Created on 2019-04-17 by the reprex package (v0.2.1)