Abbreviations, automatic: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
→‎Python Functional: (some tidying of main function)
Hout (talk | contribs)
Line 1,658: Line 1,658:
# transpose :: [[a]] -> [[a]]
# transpose :: [[a]] -> [[a]]
def transpose(xs):
def transpose(xs):
return list(map(list, zip(*xs)))
return map(list, zip(*xs))