You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the list methods can be done inline as Array.from({length: n}, ()=>Random.foo(a,b)). In general, the committee appears to favor just making "make an array of Xs" something that authors can write themselves, instead of adding built-ins for it.
This also means we need list variants of every random method, or else justify why some get one and others don't. For example, currently if you want a list of random selections from an array, you have to write code like my example above; we don't provide a way to ask for an array of N selections.
I think we should just drop the list variants.
The text was updated successfully, but these errors were encountered:
All of the list methods can be done inline as
Array.from({length: n}, ()=>Random.foo(a,b))
. In general, the committee appears to favor just making "make an array of Xs" something that authors can write themselves, instead of adding built-ins for it.This also means we need list variants of every random method, or else justify why some get one and others don't. For example, currently if you want a list of random selections from an array, you have to write code like my example above; we don't provide a way to ask for an array of N selections.
I think we should just drop the list variants.
The text was updated successfully, but these errors were encountered: