Old lady swallowed a fly: Difference between revisions
→{{header|Haskell}}: change in text
(→{{header|Haskell}}: shorter) |
(→{{header|Haskell}}: change in text) |
||
Line 1,045:
=={{header|Haskell}}==
<lang haskell>import Data.List (tails)
animals=
Line 1,053:
,"cat.\t\nImagine that. She swallowed a cat."
,"dog.\t\nWhat a hog to swallow a dog."
,"goat.\t\nShe just opened her throat and swallowed
,"cow.\nI don't know how she swallowed
,"horse.\nShe's dead, of course."]
Line 1,099:
There was an old lady who swallowed a goat.
She just opened her throat and swallowed
She swallowed the goat to catch the dog.
She swallowed the dog to catch the cat.
Line 1,110:
There was an old lady who swallowed a cow.
I don't know how she swallowed
She swallowed the cow to catch the goat.
She swallowed the goat to catch the dog.
|