ASCII control characters: Difference between revisions
Content added Content deleted
mNo edit summary |
imported>Maxima enthusiast No edit summary |
||
Line 362: | Line 362: | ||
(CNTRL.nul, CNTRL.ht, CNTRL.us, CNTRL.del) = (0, 9, 31, 127) |
(CNTRL.nul, CNTRL.ht, CNTRL.us, CNTRL.del) = (0, 9, 31, 127) |
||
</pre> |
</pre> |
||
=={{header|Maxima}}== |
|||
Those character can be put in a list and can be found their ASCII numbers. |
|||
<syntaxhighlight lang="maxima"> |
|||
/* List of characters that are not constituents (constituent is a graphic character but not a space character) */ |
|||
block(makelist(ascii(i),i,0,127),sublist(%%,lambda([x],not constituent(x)))); |
|||
/* [,"�","�","�","�","�","�","�","�","�"," |
|||
","�","�"," |
|||
","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�"," ","�"] */ |
|||
/* Ascii numbers of characters that are not constituents */ |
|||
map(cint,%); |
|||
/* [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,127] */ |
|||
</syntaxhighlight> |
|||
=={{header|Nim}}== |
=={{header|Nim}}== |