Old lady swallowed a fly: Difference between revisions
Content added Content deleted
(→{{header|Haskell}}: shorter version) |
(→{{header|Haskell}}: + output) |
||
Line 1,062: | Line 1,062: | ||
lastVerse = tail $ reverse $ zipWith swalloed animals $ tail animals |
lastVerse = tail $ reverse $ zipWith swalloed animals $ tail animals |
||
main = putStr $ concatMap unlines $ zipWith (:) beginnings $ cycle $ reverse $ tails $ lastVerse</lang> |
main = putStr $ concatMap unlines $ zipWith (:) beginnings $ cycle $ reverse $ tails $ lastVerse</lang> |
||
{{out}}<pre>There was an old lady who swallowed a fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a spider. |
|||
That wiggled and jiggled and tickled inside her. |
|||
She swallowed the spider to catch the fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a bird. |
|||
How absurd, to swallow a bird. |
|||
She swallowed the bird to catch the spider. |
|||
That wiggled and jiggled and tickled inside her. |
|||
She swallowed the spider to catch the fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a cat. |
|||
Imagine that. She swallowed a cat. |
|||
She swallowed the cat to catch the bird. |
|||
She swallowed the bird to catch the spider. |
|||
That wiggled and jiggled and tickled inside her. |
|||
She swallowed the spider to catch the fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a dog. |
|||
What a hog to swallow a dog. |
|||
She swallowed the dog to catch the cat. |
|||
She swallowed the cat to catch the bird. |
|||
She swallowed the bird to catch the spider. |
|||
That wiggled and jiggled and tickled inside her. |
|||
She swallowed the spider to catch the fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a goat. |
|||
She just opened her throat and swallowed that goat. |
|||
She swallowed the goat to catch the dog. |
|||
She swallowed the dog to catch the cat. |
|||
She swallowed the cat to catch the bird. |
|||
She swallowed the bird to catch the spider. |
|||
That wiggled and jiggled and tickled inside her. |
|||
She swallowed the spider to catch the fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a cow. |
|||
I don't know how she swallowed that cow. |
|||
She swallowed the cow to catch the goat. |
|||
She swallowed the goat to catch the dog. |
|||
She swallowed the dog to catch the cat. |
|||
She swallowed the cat to catch the bird. |
|||
She swallowed the bird to catch the spider. |
|||
That wiggled and jiggled and tickled inside her. |
|||
She swallowed the spider to catch the fly. |
|||
I don't know why she swallowed a fly. |
|||
Perhaps she'll die. |
|||
There was an old lady who swallowed a horse. |
|||
She's dead, of course.</pre> |
|||
=={{header|Icon}} and {{header|Unicon}}== |
=={{header|Icon}} and {{header|Unicon}}== |