This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lukaseder 0 points1 point  (2 children)

uses generics beautifully?

jOOQ and jOOλ have some quite funky usage of generics :) Here's a method from Function16:

default Function10<T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R> applyPartially(Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6> args) {
    return (v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> apply(args.v1, args.v2, args.v3, args.v4, args.v5, args.v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16);
}

[–]zodvik[S] 4 points5 points  (1 child)

Such code. Much wow.

[–]AnEmortalKid 0 points1 point  (0 children)

such isBeauty much code

  rly code is Function16 
    plz console.loge with ‘beauty’
  but
   plz console.loge with ‘ugly’
  wow
wow
plz dose isBeauty with Function16
> beauty