Binary digits: Difference between revisions

m
(→‎Custom functions: Updated output for disaggregated (Integer -> Booleans -> String) version (Test numbers from task description))
Line 3,081:
def main():
'''Test'''
 
binary = compose(stringFromBools)(boolsFromInt)
 
print('Mapping a composed function:')
print(unlines(map(
binary,
[5, 50, 9000]
)))
 
print(
Line 3,169 ⟶ 3,177:
main()</lang>
{{Out}}
<pre>Mapping a composed function:
<pre>Tabulating a string display from binary data:
101
110010
10001100101000
 
<pre>Tabulating a string display from binary data:
5 -> 101
50 -> 110010
9,659

edits