Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pazqo
on June 13, 2021
|
parent
|
context
|
favorite
| on:
Elevator Saga: An elevator programming game (2015)
You should be able to accomplish the same with elevators.forEach((elevator) => {})
lloydatkinson
on June 14, 2021
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: