How is one of code snippet any more procedural than the other? I suppose you mean the approach is procedural vs declarative — tell what actions to take vs tell what state to be in.

Programming, experimenting, writing | Past: SWE, Researcher, Professor | Present: SWE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store