addHead(address) :
This function adds a new element to the head of a linked list. It creates a new LinkedListElement with the data provided as an argument, and sets the next element of the new element to the current head of the list. The new element is then set as the head of the list, and an event is emitted to indicate that the head has been set. (autogenerated documentation)
insertAfter(address,address) :
This function inserts a new element into a linked list after a given element. It takes in two parameters, an address of the previous element and an address of the data to be inserted. It creates a new LinkedListElement with the data address, then sets the next element of the new element to the next element of the previous element. Finally, it sets the next element of the previous element to the new element. (autogenerated documentation)
removeAfter(address) :
This function removes an element from a linked list after a given address. It takes in the address of the previous element in the list as an argument. It then creates a LinkedListElement object for the previous element, the element to be deleted, and the next element. It then sets the next element of the previous element to the next element of the element to be deleted, effectively removing the element from the list. (autogenerated documentation)
findFirst(address) :
This function searches through a linked list for a given data value and returns the address of the first element in the list that contains that data. It does this by looping through the list, starting at the head element, and comparing the data of each element to the given data value. If a match is found, the address of the element is returned. If no match is found, the address of the null element is returned. (autogenerated documentation)