.NET/Link API Version 1.7 USE FRAMES

Expr.Take Method 

Returns a new Expr that has the same head but only the first n elements of this Expr (or last n elements if n is negative). Works like the Mathematica function Take.

[Visual Basic]
Public Function Take( _
   ByVal n As Integer _
) As Expr
[C#]
public Expr Take(
   int n
);

Parameters

n
The number of elements to take from the beginning (or end if n is negative).

Return Value

The shortened Expr.

Exceptions

Exception Type Condition
ArgumentException If n is beyond the bounds of the expression.

See Also

Expr Class | Wolfram.NETLink Namespace