ARRAY.C

LIB3/SECURE/SIMUL_EF/ARRAY.C · 390 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

mixed  *delete( mixed *arr, int start, int len )
{
    return arr[ 0..start - 1 ] + arr[ start + len..sizeof( arr ) ];
}				/* delete() */

mixed  *slice_array( mixed *arr, int start, int fin )
{
    return arr[ start..fin ];
}				/* slice_array() *.

				   mixed *insert(mixed *arr, mixed el, int pos) {
				   return arr[0..pos-1]+({ el })+arr[pos..sizeof(arr)];
				   } /* insert() */

Site Stats

Snippets: 1791
Codebases: 571