/// <summary> /// /// </summary> /// <param name="head"></param> /// <param name="tail"></param> public SinglyLinked(T head, SinglyLinked <T> tail) { ThrowWhen(head, IsNullOrDefault, nameof(head)); Head = head; Tail = tail; }
public static SinglyLinked <T> ToSinglyLinked <T>(this T[] source) => SinglyLinked <T> .FromArray(source, 0, source.Length);