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

7
LINES

< > BotCompany Repo | #1010752 // funcToAnswerMethod

JavaX fragment (include)

// f: func(S) -> S
static O funcToAnswerMethod(fO f) {
  if (f == null) null;
  ret new O {
    S answer(S s) { ret strOrNull(callF(f, s)); }
  };
}

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: #1010752
Snippet name: funcToAnswerMethod
Eternal ID of this version: #1010752/2
Text MD5: 8b8c881c547d51303d5fdbc1919b2d3e
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-28 17:59:29
Source code size: 154 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 405
Version history: 1 change(s)
Referenced in: [show references]