wrap

open fun wrap(n: Double): IExpression

Given a double, creates a NumTreeNode and wraps it into a ListTreeNode.

Return

an IExpression containing the passed element in a set

Parameters

n

the node to wrap


open fun wrap(s: HashString): IExpression

Given a HashString, creates the corresponding ITreeNode and wraps it into a ListTreeNode.

Return

an IExpression containing the passed element in a set

Parameters

s

the node to wrap


open fun wrap(nodes: Iterable<ITreeNode<out Any>>): IExpression

Wraps a collection of ITreeNode into a new List IExpression.

Return

an IExpression containing all the elements in a set

Parameters

nodes

the nodes to wrap


open fun wrap(node: ITreeNode<out Any>): IExpression

Given a node, wraps it into a ListTreeNode.

Return

an IExpression containing the passed element in a set

Parameters

node

the node to wrap