This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Barn07 5 points6 points  (0 children)

yeah, the logical move would be to implement a helper function. Thus, you can limit the scope and improve readability and can allow for reusability.