NewNode (Kernel)

NewNode(value key)

Creates a new node setting its value and key to the given parameters. The value is the value it contains, the key is the identifier used to find it in the list it’s attatched to.

Parameters:
  • value – A value to put in the new node.
  • key (number) – A key for the new node.
Returns:

The new list node.