Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Doubly-linked list
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oleg <oleg_inconnu@m...>
Subject: [Caml-list] Doubly-linked list

Has anyone implemented a doubly-linked list with O(1) push_back, push_front, 
back, front, length operations?


P.S. BTW, one could have identical interfaces for a) resizable arrays, b) 
doubly-linked lists and c) deques, the only difference being the efficiency 
of various operations. It could be convenient for a programmer, because final 
data representation can be chosen after the program has been profiled and 
without changing much code. Has anyone tackled this problem?
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: