Junilu Lacar wrote:That solution looks like it prints the value of i unconditionally, then fizz, buzz, or fizzbuzz. Isn't the original requirement to conditionally print fizz, buzz, or fizzbuzz instead of the number?
Junilu Lacar wrote:
There's a Go (the programming language) Proverb I really like and if anything, I'd hire and fire based on it: Clear is better than clever.
I think a lot of recruiters and employers these days would agree with that. Don't get too carried away with the lambdas; there's a point where it becomes less clear and more like you're just trying to be clever.