Skip to main content

LinkedList.to_list

Converts the LinkedList to a list

Usage

to_list()

Returns:
      list
            A list containing the values in the LinkedList

Example

from jellybeans.structures import LinkedListLL1 = LinkedList([10, 3, 7, 29])print(LL1.to_list()) # [10, 3, 7, 29]