コード例 #1
0
 /// <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;
 }
コード例 #2
0
 public static SinglyLinked <T> ToSinglyLinked <T>(this T[] source) =>
 SinglyLinked <T> .FromArray(source, 0, source.Length);