Jump to content

Multiplication tables: Difference between revisions

→‎Functional Python: Tidying layout for legibility
m (→‎Functional Python: Minor reformat to ease the comparison of list comprehension with list monad)
(→‎Functional Python: Tidying layout for legibility)
Line 4,180:
 
xs = enumFromTo(1)(n)
return unlines(bind(xs)(lambda y: [
padbind(strxs)(lambda y) + ':') + unwords([
bindpad(xs)str(lambday) x+ ':') [+ unwords(
padbind(strxs)(x * y) iflambda x: >= y else '')[
] pad(str(x * y) if x >= y else '')
) ]))
)
])
)
 
 
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.