Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Show-ASCII-table/Miranda/show-ascii-table.miranda
Normal file
12
Task/Show-ASCII-table/Miranda/show-ascii-table.miranda
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
main :: [sys_message]
|
||||
main = [Stdout table]
|
||||
|
||||
table :: [char]
|
||||
table = lay [concat [item n | n<-[row, (row+16)..127]] | row<-[32..47]]
|
||||
|
||||
item :: num->[char]
|
||||
item n = num ++ " : " ++ desc
|
||||
where num = reverse (take 3 (reverse (shownum n) ++ repeat ' '))
|
||||
desc = "Spc ", if n = 32
|
||||
= "Del ", if n = 127
|
||||
= decode n : " ", otherwise
|
||||
Loading…
Add table
Add a link
Reference in a new issue