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

12
LINES

< > BotCompany Repo | #1022424 // gazelle_transformRulesUsingWordMap

JavaX fragment (include)

// returns only rules that actually changed (keeping the IDs)
static L<TextCommentsID> gazelle_transformRulesUsingWordMap(SS map, L<TextCommentsID> rules) {
  new L<TextCommentsID> out;
  for (TextCommentsID t : rules) {
    TextCommentsID t2 = new(
      replaceWords_includingCamelCase(map, t.text),
      replaceWords_includingCamelCase(map, t.comments),
      t.id);
    if (neq(t.text, t2.text)) out.add(t2);
  }
  ret out;
}

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: #1022424
Snippet name: gazelle_transformRulesUsingWordMap
Eternal ID of this version: #1022424/2
Text MD5: f369017b58bca65258c883761a03c314
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-17 11:33:26
Source code size: 441 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 193
Version history: 1 change(s)
Referenced in: [show references]