Exemplo n.º 1
0
 /// <summary>
 /// Creates new <see cref="YacqList"/> object which contains specified values.
 /// </summary>
 /// <param name="head">The first element of the list.</param>
 /// <param name="tail">The list of rest elements of the list.</param>
 /// <returns>The <see cref="YacqList"/> object which contains specified values.</returns>
 public static YacqList Create(Expression head, YacqList tail)
 {
     return(head == null && tail == null
         ? Empty
         : new YacqList(head, tail));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="YacqList"/> class.
 /// </summary>
 /// <param name="head">The first element of the list.</param>
 /// <param name="tail">The list of rest elements of the list.</param>
 public YacqList(Expression head, YacqList tail)
 {
     this._head = head;
     this._tail = tail;
 }