[BACK]Return to list.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc / parts / builtin

Diff for /OpenXM/src/asir-doc/parts/builtin/list.texi between version 1.3 and 1.4

version 1.3, 2003/04/19 15:44:58 version 1.4, 2003/12/18 10:26:20
Line 1 
Line 1 
 @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/list.texi,v 1.2 1999/12/21 02:47:33 noro Exp $  @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/list.texi,v 1.3 2003/04/19 15:44:58 noro Exp $
 \BJP  \BJP
 @node リストの演算,,, 組み込み函数  @node リストの演算,,, 組み込み函数
 @section リストの演算  @section リストの演算
Line 38 
Line 38 
 @item @t{reverse}(@var{list})  @item @t{reverse}(@var{list})
 \JP :: @var{list} を逆順にしたリスト.  \JP :: @var{list} を逆順にしたリスト.
 \EG :: reversed list of @var{list}.  \EG :: reversed list of @var{list}.
 @item length(@var{list})  @item length(@var{list}|@var{vect})
 \JP :: @var{list} の長さ.  \JP :: @var{list} の長さ, または @var{vect} の長さ.
 \EG :: Number of elements in a list @var{list}.  \EG :: Number of elements in a list @var{list} and a vector @var{vect}.
 @end table  @end table
   
 @table @var  @table @var
Line 71 
Line 71 
 @item  @item
 @code{reverse()} は, @var{list} を逆順にしたリストを出力する.  @code{reverse()} は, @var{list} を逆順にしたリストを出力する.
 @item  @item
 @code{length()} は, @var{list} の長さを出力する. ベクトル及び行列の要素の個数は, @code{size()} を用いる.  @code{length()} は, @var{list} または @var{vect} の長さを出力する. 行列の要素の個数は, @code{size()} を用いる.
 @item  @item
 リストは読み出し専用で, 要素の入れ替えはできない.  リストは読み出し専用で, 要素の入れ替えはできない.
 @item  @item
Line 115  in the same ordering.
Line 115  in the same ordering.
 Function @code{reverse()} returns a reversed list of @var{list}.  Function @code{reverse()} returns a reversed list of @var{list}.
 @item  @item
 Function @code{length()} returns a non-negative integer which is the  Function @code{length()} returns a non-negative integer which is the
 number of elements in the input list @var{list}.  number of elements in the input list @var{list} and the input vector @var{vect}.
 Note that function @code{size} should be used for counting elements  Note that function @code{size} should be used for counting elements
 of @var{vector} and @var{matrix}.  of @var{matrix}.
 @item  @item
 Lists are read-only objects in @b{Asir}.  There elements cannot be  Lists are read-only objects in @b{Asir}.  There elements cannot be
 modified.  modified.
Line 154  Similar argument applies to function @code{reverse()}.
Line 154  Similar argument applies to function @code{reverse()}.
 [d,c,b,a]  [d,c,b,a]
 [6] length(L);  [6] length(L);
 3  3
 [7] L[2][0];  [7] length(ltov(L));
   3
   [8] L[2][0];
 5  5
 @end example  @end example
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>