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

12
LINES

< > BotCompany Repo | #1013205 // tok_doubleFor_v1

JavaX fragment (include)

static void tok_doubleFor_v1(L<S> tok) {
  jreplace(tok, "for (<id> <id>, <id> <id> : <id>) {",
    "for ($3 $4 : keys($9)) { $6 $7 = $9.get($4);");
  jreplace(tok, "for (<id> <id>, <id><<id>> <id> : <id>) {",
    "for ($3 $4 : keys($12)) { $6 $7 $8 $9 $10 = $12.get($4);");
  jreplace(tok, "for (<id> <id>, <id><<id>,<id>> <id> : <id>) {",
    "for ($3 $4 : keys($14)) { $6 $7 $8 $9 $10 $11 $12 = $14.get($4);");
  jreplace(tok, "for (<id> <id>, <id><<id>,<id>,<id>> <id> : <id>) {",
    "for ($3 $4 : keys($16)) { $6 $7 $8 $9 $10 $11 $12 $13 $14 = $16.get($4);");
  jreplace(tok, "for (<id> <id>, <id> : <id>) {",
    "for ($3 $4 : keys($8)) { $3 $6 = $8.get($4);");
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013205
Snippet name: tok_doubleFor_v1
Eternal ID of this version: #1013205/1
Text MD5: c299b071dcc64236a0845de4348b19cb
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-28 20:46:08
Source code size: 681 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 475 / 530
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013206 - tok_doubleFor_v2