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

9
LINES

< > BotCompany Repo | #1006200 // ocr_joinAsGrouped

JavaX fragment (include)

static S ocr_joinAsGrouped(L<S> l) {
  new StringBuilder buf;
  for (S s : l)
    if (l(s) == 1 || l(s) == 2 && s.charAt(0) == '\\')
      buf.append(s);
    else
      buf.append("[").append(s).append("]");
  ret str(buf);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006200
Snippet name: ocr_joinAsGrouped
Eternal ID of this version: #1006200/2
Text MD5: 85f6b98bbf57caed0e297b88c56b37d1
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-11 00:23:03
Source code size: 233 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 480 / 482
Version history: 1 change(s)
Referenced in: [show references]