Multiplication tables: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Simplified the functional variant, defining a string in terms of a list comprehension.) |
|||
Line 4,170: | Line 4,170: | ||
# unlines :: [String] -> String |
# unlines :: [String] -> String |
||
def unlines(xs): |
def unlines(xs): |
||
'''A newline-delimited string |
'''A newline-delimited string derived from a list of lines.''' |
||
return '\n'.join(xs) |
return '\n'.join(xs) |
||