[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Question about size() and length() of lists (newbie question)

**From**: |
Douglas Eck |

**Subject**: |
Question about size() and length() of lists (newbie question) |

**Date**: |
Thu, 14 Dec 2000 10:17:36 +0100 |

I noticed that size() and length() treat lists
differently. I can imagine that this is
desired behavior but I thought I'd ask.
Octave >> version
ans = 2.1.31
Octave >> l=list('a','b','c')
l =
(
[1] = a
[2] = b
[3] = c
)
Octave >> length(l)
ans = 3
Octave >> size(l)
ans =
-1 -1
Regards,
Doug
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------

**Question about size() and length() of lists (newbie question)**,
*Douglas Eck* **<=**