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