Up |
Create an ascii array from a string. Don't use mktab before to create the array, the array is automatically created by strtotab.
fun [S] tab I
Return : tab I a new ascii array or nil if an error occurs.
typeof tab = tab I;;
fun ftab (char, index)=
if (char == 'z) then
set tab.index = 'e
else
0;;
fun main ()=
_showconsole;
set tab = strtotab "Hzllo World";
forTab @ftab tab;
_fooS tabtostr tab; // Hello World
0;;