@@ -278,11 +278,7 @@ public V6<V2<A>> vzip(final V6<A> bs) {
278278 * @return a function that transforms a vector-6 to a stream of its elements.
279279 */
280280 public static <A > F <V6 <A >, Stream <A >> toStream_ () {
281- return new F <V6 <A >, Stream <A >>() {
282- public Stream <A > f (final V6 <A > v ) {
283- return v .toStream ();
284- }
285- };
281+ return v -> v .toStream ();
286282 }
287283
288284 /**
@@ -291,11 +287,7 @@ public Stream<A> f(final V6<A> v) {
291287 * @return a function that transforms a vector-6 to the equivalent product-6.
292288 */
293289 public static <A > F <V6 <A >, P6 <A , A , A , A , A , A >> p_ () {
294- return new F <V6 <A >, P6 <A , A , A , A , A , A >>() {
295- public P6 <A , A , A , A , A , A > f (final V6 <A > v ) {
296- return v .p ();
297- }
298- };
290+ return v -> v .p ();
299291 }
300292
301293 /**
@@ -304,11 +296,7 @@ public P6<A, A, A, A, A, A> f(final V6<A> v) {
304296 * @return a function that gets the first element of a given vector.
305297 */
306298 public static <A > F <V6 <A >, A > __1 () {
307- return new F <V6 <A >, A >() {
308- public A f (final V6 <A > v ) {
309- return v ._1 ();
310- }
311- };
299+ return v -> v ._1 ();
312300 }
313301
314302 /**
@@ -317,11 +305,7 @@ public A f(final V6<A> v) {
317305 * @return a function that gets the second element of a given vector.
318306 */
319307 public static <A > F <V6 <A >, A > __2 () {
320- return new F <V6 <A >, A >() {
321- public A f (final V6 <A > v ) {
322- return v ._2 ();
323- }
324- };
308+ return v -> v ._2 ();
325309 }
326310
327311 /**
@@ -330,11 +314,7 @@ public A f(final V6<A> v) {
330314 * @return a function that gets the third element of a given vector.
331315 */
332316 public static <A > F <V6 <A >, A > __3 () {
333- return new F <V6 <A >, A >() {
334- public A f (final V6 <A > v ) {
335- return v ._3 ();
336- }
337- };
317+ return v -> v ._3 ();
338318 }
339319
340320 /**
@@ -343,11 +323,7 @@ public A f(final V6<A> v) {
343323 * @return a function that gets the fourth element of a given vector.
344324 */
345325 public static <A > F <V6 <A >, A > __4 () {
346- return new F <V6 <A >, A >() {
347- public A f (final V6 <A > v ) {
348- return v ._4 ();
349- }
350- };
326+ return v -> v ._4 ();
351327 }
352328
353329 /**
@@ -356,11 +332,7 @@ public A f(final V6<A> v) {
356332 * @return a function that gets the fifth element of a given vector.
357333 */
358334 public static <A > F <V6 <A >, A > __5 () {
359- return new F <V6 <A >, A >() {
360- public A f (final V6 <A > v ) {
361- return v ._5 ();
362- }
363- };
335+ return v -> v ._5 ();
364336 }
365337
366338 /**
@@ -369,11 +341,7 @@ public A f(final V6<A> v) {
369341 * @return a function that gets the sixth element of a given vector.
370342 */
371343 public static <A > F <V6 <A >, A > __6 () {
372- return new F <V6 <A >, A >() {
373- public A f (final V6 <A > v ) {
374- return v ._6 ();
375- }
376- };
344+ return v -> v ._6 ();
377345 }
378346
379347}
0 commit comments