Hello,<br><br>I was wondering if there is a function in Scilab that
allows to display lists in a compact way rather than as a (sometime
endless) listing. I did not see any link to such function in 'help
list'. For those of you who are familiar in the R language, I am
looking for something like the 'str' function, as exemplified below:<br>
<br><span style="font-family: courier new,monospace;">> mylist<-list(a=list(abc=1:10,xyz=letters[1:15]),</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">               elem=matrix(1:10,ncol=2))</span><br style="font-family: courier new,monospace;">

<div id=":17q" class="ii gt"><span style="font-family: courier new,monospace;">> mylist</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$a</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">$a$abc</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> [1]  1  2  3  4  5  6  7  8  9 10</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$a$xyz</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o"</span><br style="font-family: courier new,monospace;">


<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$elem</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">     [,1] [,2]</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[1,]    1    6</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[2,]    2    7</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[3,]    3    8</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[4,]    4    9</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[5,]    5   10</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> str(mylist)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">List of 2</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $ a   :List of 2</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ..$ abc: int [1:10] 1 2 3 4 5 6 7 8 9 10</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
  ..$ xyz: chr [1:15] "a" "b" "c" "d" ...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $ elem: int [1:5, 1:2] 1 2 3 4 5 6 7 8 9 10</span><br>

<br><br>Thanks<br><br>Sebastien</div>