summary refs log tree commit diff stats
path: root/lib/pure/collections/lists.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/collections/lists.nim')
-rwxr-xr-xlib/pure/collections/lists.nim13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/pure/collections/lists.nim b/lib/pure/collections/lists.nim
index cae6d4620..930fd776e 100755
--- a/lib/pure/collections/lists.nim
+++ b/lib/pure/collections/lists.nim
@@ -12,15 +12,24 @@
 ## be manipulated directly for efficiency.
 
 type
-  TDoublyLinkedNode[T] {.pure, final.} = object
+  TDoublyLinkedNode*[T] {.pure, 
+      final.} = object ## a node a doubly linked list consists of
     next*, prev*: ref TDoublyLinkedNode[T]
     value*: T
   PDoublyLinkedNode*[T] = ref TDoublyLinkedNode[T]
 
-  TSinglyLinkedNode[T] {.pure, final.} = object
+  TSinglyLinkedNode*[T] {.pure, 
+      final.} = object ## a node a singly linked list consists of
     next*: ref TSinglyLinkedNode[T]
     value*: T
   PSinglyLinkedNode*[T] = ref TSinglyLinkedNode[T]
+  
+  TRingNode[T] {.pure, 
+      final.} = object ## a node a ring list consists of
+    next*, prev*: ref TRingNode[T]
+    value*: T
+    
+  PRingNode*[T] = ref TRingNode[T]
 
 proc newDoublyLinkedNode*[T](value: T): PDoublyLinkedNode[T] =
   ## creates a new doubly linked node with the given `value`.