News for hackers. Stuff that matters.
Re:Elevator Saga – An elevator programming game by pazqo on Sunday June 13, 2021 @09:20AM (#27492344)
You should be able to accomplish the same with elevators.forEach((elevator) => {})
Re:Elevator Saga – An elevator programming game by lloydatkinson on Monday June 14, 2021 @03:53AM (#27500335)
It could, but favouring FP I'd use for..of for imperative loops where I need to do side-effects, or use .map which is nicer anyway.