  {ListType} output = {{.first = node, .last = node, .node_count = 1}};

  while (output.first->prev != NULL) {{
    output.first = output.first->prev;
    ++(output.node_count);
  }}

  while (output.last->next != NULL) {{
    output.last = output.last->next;
    ++(output.node_count);
  }}

  return output;
