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

8
LINES

< > BotCompany Repo | #1033410 // jreplace_dyn_allowDollarRefs

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (11461L/64K).

// out: func(L<S> tok, int cIndex) -> S
sbool jreplace_dyn_allowDollarRefs(LS tok, S in, IF1<Int, S> out) {
  ret jreplace_dyn(tok, in, (_tok, cIdx) -> {
    S replacement = out.get(cIdx);
    LS subList = subList(tok, cIdx-1); // N to N
    ret jreplaceExpandRefs(replacement, subList);
  });
}

Author comment

Began life as a copy of #1009462

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033410
Snippet name: jreplace_dyn_allowDollarRefs
Eternal ID of this version: #1033410/3
Text MD5: 94deb66ed0e36f5a2ade8e321df0d3f3
Transpilation MD5: ea19519e63eef8f6f8889eb36cd65fd8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-07-26 22:52:22
Source code size: 302 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 171
Version history: 2 change(s)
Referenced in: [show references]