Node Function Example
Details
Action
A MathScript Function that creates a new node for a binary tree. A simple way
to use it is to create a new list, the FIRST element of which is the first argument, and the REST of which is the list supplied as second argument.
Enter the following commands on a command line to see the behavior of the
node function
make list1 list(1,2,3,4,5)
make newlist node(2, list1)
returns the list (2,1,2,3,4,5 )
node(1,False)
returns the list (1)