summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure')
-rwxr-xr-xlib/pure/collections/lists.nim18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/pure/collections/lists.nim b/lib/pure/collections/lists.nim
index 55c3d6ad9..3e54dc02b 100755
--- a/lib/pure/collections/lists.nim
+++ b/lib/pure/collections/lists.nim
@@ -35,7 +35,23 @@ type
   
   TDoublyLinkedRing* {.pure, final.}[T] = object ## a doubly linked ring
     head*: PDoublyLinkedNode[T]
-    
+
+proc initSinglyLinkedList*[T](): TSinglyLinkedList[T] =
+  ## creates a new singly linked list that is empty.
+  nil
+
+proc initDoublyLinkedList*[T](): TDoublyLinkedList[T] =
+  ## creates a new doubly linked list that is empty.
+  nil
+
+proc initSinglyLinkedRing*[T](): TSinglyLinkedRing[T] =
+  ## creates a new singly linked ring that is empty.
+  nil
+
+proc initDoublyLinkedRing*[T](): TDoublyLinkedRing[T] =
+  ## creates a new doubly linked ring that is empty.
+  nil
+
 proc newDoublyLinkedNode*[T](value: T): PDoublyLinkedNode[T] =
   ## creates a new doubly linked node with the given `value`.
   new(result)