
SLICE_ARRAY(2)             silmul_efun             SLICE_ARRAY(2)

名稱
     slice_array - 實作舊式的陣列用法

語法
     mixed *slice_array(mixed *arr, int from, int to);

描述
     This simul_efun exists mainly to simplify  porting  of  old-
     style  mudlibs  to  MudOS;  if you are writing new code, you
     should use  the  arr[from..to]  syntax  instead  of  calling
     slice-array.   The  original  slice_array  efun  returned an
     array containing only the array elements between the  "from"
     index and the "to" index; e.g. slice_array( ({ a,b,c,d,e }),
     2, 3) would return the array ({ c,d }).

作者
     Ichabod@TMI, 3/10/93
     wade@future 4/8/1996 翻譯

MudOS Release 0.9         Last change:                   3-19-93

