equal
deleted
inserted
replaced
132 } |
132 } |
133 |
133 |
134 /** Construct a list consisting of given element. |
134 /** Construct a list consisting of given element. |
135 */ |
135 */ |
136 public static <A> List<A> of(A x1) { |
136 public static <A> List<A> of(A x1) { |
137 return new List<>(x1, List.<A>nil()); |
137 return new List<>(x1, List.nil()); |
138 } |
138 } |
139 |
139 |
140 /** Construct a list consisting of given elements. |
140 /** Construct a list consisting of given elements. |
141 */ |
141 */ |
142 public static <A> List<A> of(A x1, A x2) { |
142 public static <A> List<A> of(A x1, A x2) { |