This is a collection of familiarization exercises in Swift. They'll suffer from ignorance of writing idiomatic code. My goal is to iterate on these as fluency develops and leave them up for the brave.
In short:
- Caveat Lector
- Don't Be A Jerk
Yours Truly,
Erik Hollembeak
@CQH still trying to suss out idiom as far as the appropriateness of string concatenation in the setting of the FizzBuzz problem. I'm sure there's also constantization nonsense that I could be doing, but that might be my brain being broken from Java.
There's also the question of the cyclomatic complexity of three if statements in a row versus the if/else construction in the original version.
The BIG Question I have is whether the nested function here is asinine because nominally I did it so I could test it was returning the right strings for the right values, but I don't think it's actually testable in it's current state.