News for hackers. Stuff that matters.
Re:If-then-else had to be invented by k__ on Sunday December 13, 2020 @11:20AM (#25407600)
"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?

Re:If-then-else had to be invented by gnramires on Monday December 14, 2020 @01:03PM (#25420858)
There'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".