ExprTake 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 Wolfram Language function Take.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public Expr Take(
	int n
)

Parameters

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

Return Value

Expr
The shortened Expr.

Exceptions

ArgumentExceptionIf n is beyond the bounds of the expression.

See Also