Jump to content

Show ASCII table: Difference between revisions

m
(→‎Python Plain text: Refactored outer level, updated primitives (inc. with docstrings))
Line 1,674:
# asciiEntry :: Int -> String
def asciiEntry(n):
'''Number:, characterand stringname or character, for given point in ASCII code.'''
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
9,659

edits

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