Rename the draw
function
#93
aleclarson
announced in
RFCs
Replies: 1 comment
-
What if we want to have similar functions for objects? I see two options:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To me, “drawing” in this context implies the array will be mutated (like how a deck of cards depletes as you draw from it).
Possible new names:
randomItem
randomElement
randomValue
Beta Was this translation helpful? Give feedback.
All reactions