Interested in the implementation of a persistent doubly linked list.
On Wikipedia I found a formal description of the method, which consists in combining the methods of copying the path and the "thick" nodes. But I’m not entirely clear how to write this effectively in a programming language. It also raises the question of what functions will be available in this implementation.
I would be interested in a list with the functions pop_front () and pop_back ().
Could someone give recommendations on how to implement or even better - sample code in any programming language.