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

8
LINES

< > BotCompany Repo | #1017540 // callAndMake_plusMap - callAndMake + "map <functionName>"

JavaX fragment (include)

static O callAndMake_plusMap(S f, O... args) {
  new Matches m;
  if (startsWith(f, "map ", m) && l(args) == 1) {
    fS f2 = m.rest();
    ret map(func(O o) -> O { callAndMake(f2, o) }, (Iterable) first(args));
  }
  ret callAndMake(f, args);
}

Author comment

Began life as a copy of #1017539

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017540
Snippet name: callAndMake_plusMap - callAndMake + "map <functionName>"
Eternal ID of this version: #1017540/2
Text MD5: ce9955c7ab1a8603523627fb772af931
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-26 14:13:26
Source code size: 252 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 318
Version history: 1 change(s)
Referenced in: [show references]