Show ASCII table: Difference between revisions
m
→Plain text Python
(→Python Plain text: Refactored outer level, updated primitives (inc. with docstrings)) |
|||
Line 1,674:
# asciiEntry :: Int -> String
def asciiEntry(n):
'''Number
k = asciiName(n)
return k if '' == k else (
Line 1,734:
def splitAt(n):
'''A tuple pairing the prefix of length n
with the rest of xs.'''
return lambda xs: (xs[0:n], xs[n:])
Line 1,760:
# MAIN ---
if __name__ == '__main__':
main()</lang>
{{Out}}
<pre> 32 : Spc 48 : 0 64 : @ 80 : P 96 : ` 112 : p
|