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

3
LINES

< > BotCompany Repo | #1021207 // ai_addDollarSignToCertainTokens

JavaX fragment (include)

static LS ai_addDollarSignToCertainTokens(LS tok, final Set<S> set) {
  ret map(tok, func(S t) -> S { contains(set, t) ? "$" + t : t });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021207
Snippet name: ai_addDollarSignToCertainTokens
Eternal ID of this version: #1021207/6
Text MD5: 1b0f66ab089e16944df335d93278b987
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-03 01:12:22
Source code size: 140 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 328
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1021208 - ai_addDollarSignToCertainTokens_withRanges