| ▲ | OutOfHere 3 hours ago | |
I like it, but to do fizzbuzz in this way, you'd have to separate what's inside the loop into a reused function. | ||
| ▲ | pdpi 3 hours ago | parent | next [-] | |
I think it's sort of obvious that the limit to this general rule is when data dependencies between fors and ifs forbid you from pushing things further up/down. | ||
| ▲ | taolson 2 hours ago | parent | prev [-] | |
Or just use lazy list operations with a single if test at the end: https://github.com/taolson/Admiran/blob/main/examples/fizzBu... /s | ||