.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
public Expr Take(
   int n


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

Return Value

The shortened Expr.


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

See Also

Expr Class | Wolfram.NETLink Namespace