You are viewing a single comment's thread. Return to all comments →
That binds each element of the list to the variable name user. Here is some equivalent code, in a less "Ruby" style.
i = 0 while i < array.size user = array[i] # do stuff i += 1 end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Control Structures - Each
You are viewing a single comment's thread. Return to all comments →
That binds each element of the list to the variable name user. Here is some equivalent code, in a less "Ruby" style.