@take(t:tab, n:numeric)
@take(t:tab, x:tab)


is a pure overloaded function. See also functions @cdr, @drop and @slice.

@take(t:tab, n:numeric)


builds a new tab with the n first elements of tif n > 0 and the last -n elements of t if n is negative.

@take(t:tab, x:tab)


gives the tab of elements whose indices are in tab x. This is equivalent to

       [t[x[$i]] |$i in @size(x)]