blob: 26a38962bb333a0943e48e9e6d9dd982d20c301f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function txt=objectlist2string(L)
//auxiliary function for conversion of a list of objects
//into a string vector
txt=[];
for o=L,
if type(o)==15 then //EOL case
txt=[txt;'<'+o(1)+'>'],
else
txt=[txt; string(o)],
end
end
if txt==[] then txt='<empty>',end
endfunction
|