comparison src/ov-list.cc @ 3448:0fb75d95b14f

[project @ 2000-01-17 20:38:31 by jwe]
author jwe
date Mon, 17 Jan 2000 20:38:35 +0000
parents 5c76d8f267f7
children d14c483b3c12
comparison
equal deleted inserted replaced
3447:5c76d8f267f7 3448:0fb75d95b14f
143 return false; 143 return false;
144 } 144 }
145 145
146 DEFUN (list, args, , 146 DEFUN (list, args, ,
147 "-*- texinfo -*-\n\ 147 "-*- texinfo -*-\n\
148 @deftypefn {Built-in Function} {} list (@var{a1}, @var{a2}, @dots{}})\n\ 148 @deftypefn {Built-in Function} {} list (@var{a1}, @var{a2}, @dots{})\n\
149 Create a new list with elements given by the arguments @var{a1},\n\ 149 Create a new list with elements given by the arguments @var{a1},\n\
150 @var{a2}, @dots{}.\n\ 150 @var{a2}, @dots{}.\n\
151 @end deftypefn") 151 @end deftypefn")
152 { 152 {
153 return octave_value (args); 153 return octave_value (args);
264 Replace @var{length} elements of @var{list_1} beginning at\n\ 264 Replace @var{length} elements of @var{list_1} beginning at\n\
265 @var{offset} with the contents of @var{list_2} (if any). If\n\ 265 @var{offset} with the contents of @var{list_2} (if any). If\n\
266 @var{length} is omitted, all elements from @var{offset} to the end of\n\ 266 @var{length} is omitted, all elements from @var{offset} to the end of\n\
267 @var{list_1} are replaced. As a special case, if @var{offset} is one\n\ 267 @var{list_1} are replaced. As a special case, if @var{offset} is one\n\
268 greater than the length of @var{list_1} and @var{length} is 0, splice\n\ 268 greater than the length of @var{list_1} and @var{length} is 0, splice\n\
269 is equivalent to @code{append (@var{list_1}, @var{list_2}).\n\ 269 is equivalent to @code{append (@var{list_1}, @var{list_2})}.\n\
270 @end deftypefn") 270 @end deftypefn")
271 { 271 {
272 octave_value retval; 272 octave_value retval;
273 273
274 int nargin = args.length (); 274 int nargin = args.length ();