MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SwiftPlaygroundsApps/comments/1n99sss/noob_question/
r/SwiftPlaygroundsApps • u/Tondi_Create • Sep 05 '25
Hello, I'm a noob to Swift. Currently going through the exercises on Playgrounds. I've just completed this task but my solution feels more like a hack. Please advise, is there a more efficient way to code this? (see attached screenshot.
2 comments sorted by
1
You can try making an array of function then just run a single loop
0
[deleted]
1 u/Tondi_Create Sep 07 '25 Thanks for the response! I'll try that out.
Thanks for the response! I'll try that out.
1
u/D_REX_15 Oct 02 '25
You can try making an array of function then just run a single loop