Closed thevolatilebit closed 2 years ago
I used to assume that mean(f, itr) calls f once for each of the elements of itr.
mean(f, itr)
f
itr
However, there is an (extra) dry run which
In Slack's #helpdesk channel, it was also noted that there could be some issues with weirdly indexed arrays.
For example,
g3 = 0; mean(i -> (global g3 += 1; 1), 1:1)
results in g3 == 2.
g3 == 2
Moreover, this behaviour is not documented.
See #49
I used to assume that
mean(f, itr)
callsf
once for each of the elements ofitr
.However, there is an (extra) dry run which
f
s that mutate the state,In Slack's #helpdesk channel, it was also noted that there could be some issues with weirdly indexed arrays.
For example,
results in
g3 == 2
.Moreover, this behaviour is not documented.