The Linked lists in Lua are of two kinds, namely singly-linked lists and doubly linked list.A wonderful data structure used to add elements, remove elements and iterate through the elements efficiently in Lua is called Linked lists.value_to_be_inserted is the value that is to be inserted at the beginning of the list.list_name is the name of the list to be created.