Shouldn't this be instead:
    
    
    proc first[T](list: SomeLinkedList[T]): SomeLinkedNode[T] =
      result = list.head
    
    
    Run

But I don't understand the point of it anyway. Linked lists are a mostly 
obsolete data structure and not particularly convenient to work with either.

Reply via email to