Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 11 12 Bib Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

11 Slices
 11.1 API

11 Slices

A slice is a sublist of a list. Creating a slice does not copy the original list, and changes to the list also change a slice of the list.

11.1 API

11.1-1 Slice
‣ Slice( )( function )

Returns: a slice

Constructor for slices

11.1-2 IsSlice
‣ IsSlice( arg )( filter )

Returns: true or false

Category of slices

11.1-3 \[\]
\[\]( slice, value )( operation )

List-style access for slices.

11.1-4 \[\]\:\=
\[\]\:\=( slice, value, object )( operation )

List-style assignment for slices.

11.1-5 \in
‣ \in( object, slice )( operation )

Test whether a value is stored in the slice.

11.1-6 IsBound\[\]
‣ IsBound\[\]( slice, value )( operation )

Test whether a location is bound in a slice.

11.1-7 Unbind\[\]
‣ Unbind\[\]( slice, value )( operation )

Unbind a value from a slice.

11.1-8 Length
‣ Length( slice )( operation )

Determine the length of a slice.

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 11 12 Bib Ind

generated by GAPDoc2HTML