1 | // f: func(S) -> S |
2 | static O funcToAnswerMethod(fO f) { |
3 | if (f == null) null; |
4 | ret new O { |
5 | S answer(S s) { ret strOrNull(callF(f, s)); } |
6 | }; |
7 | } |
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: | 359 / 407 |
Version history: | 1 change(s) |
Referenced in: | [show references] |