Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1008187 // f1_const - F1 returning a constant

JavaX fragment (include)

static <A, B> F1<A, B> f1_const(final B b) {
  ret new F1<A, B>() {
    B get(A a) { ret b; }
  };
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008187
Snippet name: f1_const - F1 returning a constant
Eternal ID of this version: #1008187/2
Text MD5: 7448ac1c3ec763fe0af6d8f6f0dc0c29
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 19:36:10
Source code size: 104 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 531 / 537
Version history: 1 change(s)
Referenced in: [show references]