[Tutor] extracting elements in a sequence

Sean 'Shaleh' Perry shalehperry@attbi.com
Sun Feb 9 13:21:07 2003


On Sunday 09 February 2003 09:34, Tim Johnson wrote:
> Hello All:
>     Is there a builtin way to extract elements in a series
> as in
> test =3D [1,'one',2,'two',3,'three']
> extract(test,2)
> =3D [1,2,3]
> or extract(test,3)
> =3D [1,'two']
> If so, pointers to documentation would be appreciated.

eh? uh? what?

why does extract(test, 2) return [1,2,3]?  This example just does not par=
se=20
for me.