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

15
LINES

< > BotCompany Repo | #1003458 // Unroll "Ifs" in dialogs [Spike, abandoned, will do with AI]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (1470L) is out of date.

!752

p {
  S s = loadSnippet("#1003431");
  int base = getIndent(s);
  L<S> parts = splitAtEmptyLines(s);
  new L<L<S>> l;
  for (int i = 0; i < l(parts); i++) {
    S part = parts.get(i);
    getIndent(part);
    > base)
      print("Indent found: " + structure(part));
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1003458
Snippet name: Unroll "Ifs" in dialogs [Spike, abandoned, will do with AI]
Eternal ID of this version: #1003458/1
Text MD5: 9eecf26419db747e189c0fe171628003
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-03 18:16:20
Source code size: 297 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 535
Referenced in: