The type for any callback function we support. Modelled after the callback function defined for Array.forEach.
The function is called with 3 parameters:
value is the value of the element in the listindex is the position of that value in the list, with 0 being the first indexlist is the linked list itselfthe type of each value in the list
The type for any predicate function we support. Modelled after the predicates supported by Array.
The predicate function is called with 3 parameters:
value is the value of the element in the listindex is the position of that value in the list, with 0 being the first indexlist is the linked list itselfThe predicate function returns true if the predicate is successful, or false otherwise.
the type of each value in the original list
the type returned by the callback
The type for a callback function used in the map method.
Modelled after the callback function defined for Array.map.
The function is called with 3 parameters:
value is the value of the element in the listindex is the position of that value in the list, with 0 being the first indexlist the LinkedList the map() was called onA node in a singly-linked list that is only readable.
the type of each value in the list
The shape of a recursive or nested LinkedList.
the type of each value in the original list
The type for a callback function used in the reduce method.
Modelled after the callback function defined for Array.reduce.
The function is called with 3 parameters:
accumulator is the value resulting from the previous call to the functioncurrentValue the value of the current element in the listcurrentIndex the index position of currentValue in the listlist the list upon which reduce was calledGenerated using TypeDoc
the type of each value in the list