Old lady swallowed a fly: Difference between revisions

m
→‎{{header|Go}}: Brought "i--" into the "for" instruction, instead of inside the loop itself.
m (→‎{{header|Haskell}}: Minor tweaks - mainly importing only tails, rather than whole Data.List library)
m (→‎{{header|Go}}: Brought "i--" into the "for" instruction, instead of inside the loop itself.)
Line 882:
 
=={{header|Go}}==
[httphttps://play.golang.org/p/bmBEO0cw4fNwG13guusv Go Playground]
<lang go>package main
 
Line 911:
}
 
for ; i > 0; i-- {
fmt.Printf("She swallowed the %s to catch the %s,\n", animals[i][name], animals[i-1][name])
i--
}