Struct wolfram_expr::Normal
source · pub struct Normal<E = Expr> { /* private fields */ }
Expand description
Wolfram Language “normal” expression: f[...]
.
A normal expression is any expression that consists of a head and zero or more arguments.
Implementations§
source§impl Normal
impl Normal
sourcepub fn new<E: Into<Expr>>(head: E, contents: Vec<Expr>) -> Self
pub fn new<E: Into<Expr>>(head: E, contents: Vec<Expr>) -> Self
Construct a new normal expression from the head and elements.
sourcepub fn elements(&self) -> &[Expr]
pub fn elements(&self) -> &[Expr]
The elements of this normal expression.
If head
conceptually represents a function, these are the arguments that are
being applied to head
.
sourcepub fn into_elements(self) -> Vec<Expr>
pub fn into_elements(self) -> Vec<Expr>
The elements of this normal expression.
Use Normal::elements()
to get a reference to this value.