Middle three digits: Difference between revisions

Content added Content deleted
(→‎Python - Composition of pure functions: Defined output header, updated output, reformatted test.)
Line 4,031: Line 4,031:
print(
print(
tabulated('Middle three digits, where defined:\n')(
tabulated('Middle three digits, where defined:\n')(
either(bracketed)(str))
either(bracketed)(str)
(mid3digits)([
)(mid3digits)([
123, 12345, 1234567, 987654321, 10001, -10001, -123,
123, 12345, 1234567, 987654321, 10001, -10001, -123,
-100, 100, -12345, 1, 2, -1, -10, 2002, -2002, 0
-100, 100, -12345, 1, 2, -1, -10, 2002, -2002, 0