1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17 xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19 xmlns:scilab="http://www.scilab.org" xml:id="lstsize" xml:lang="en">
21 <refname>lstsize</refname>
22 <refpurpose>list, tlist, mlist numbers of entries <emphasis role="bold">(obsolete)</emphasis>
27 <synopsis>n=lstsize(l)</synopsis>
30 <title>Arguments</title>
35 <para>a list, tlist or mlist object</para>
41 <para>an integer, the number of entries</para>
47 <title>Description</title>
49 <literal>lstsize(l)</literal> returns the number of entries for
50 list, list, mlist objects. This function is more efficient than the
51 <literal>size</literal> function and works similarly with all list types
52 while <literal>size</literal> is overloaded for <literal>mlist</literal>
57 <title>Examples</title>
58 <programlisting role="example"><![CDATA[
59 lstsize(list(1,'aqsdf'))
65 <refsection role="see also">
66 <title>See also</title>
67 <simplelist type="inline">
69 <link linkend="length">length</link>
72 <link linkend="size">size</link>
75 <link linkend="list">list</link>
78 <link linkend="tlist">tlist</link>
81 <link linkend="mlist">mlist</link>
85 <refsection role="history">
86 <title>History</title>
89 <revnumber>6.0.1</revnumber>
91 <literal>lstsize()</literal> is declared obsolete, to be removed from Scilab 6.1.
92 Please use <literal>size()</literal> instead.