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

7
LINES

< > BotCompany Repo | #1004303 // mapReplaceVars - takes multiple patterns (only L<L<S>> though) OR multiple mappings

JavaX fragment (include)

static L<S> mapReplaceVars(final S pat, Iterable<SS> maps) {
  ret map(func(SS map) -> S { replaceVars(pat, map) }, maps);
}

static L<L<S>> mapReplaceVars(L<L<S>> patterns, final SS map) {
  ret map(func(L<S> pat) -> LS { replaceVars(pat, map) }, patterns);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004303
Snippet name: mapReplaceVars - takes multiple patterns (only L<L<S>> though) OR multiple mappings
Eternal ID of this version: #1004303/4
Text MD5: 6727b4ac300707af0392f30c3b04d723
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-27 12:53:03
Source code size: 266 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 454
Version history: 3 change(s)
Referenced in: [show references]