3 ms·
"we usually describe operations on sets as taking the whole set as an argument, not in terms of what happens with each individual member" Doesn't R do it like
by k__ 6y ago
"we usually describe operations on sets as taking the whole set as an argument, not in terms of what happens with each individual member"
Doesn't R do it like that too?
- gnramires 6y agoThere's javascript's foreach, which also gives an optional index. Indices are important to uniquely identify members in case you want non-uniform behavior: for example, "give 3 kinds of candy alternatingly"; element variables in turn are important for behavior that's a function of the member, say when you want to "give candy in proportion to their age".