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

12
LINES

< > BotCompany Repo | #1001185 // getChatHistory

JavaX fragment (include)

1  
static L<S> getChatHistory() {
2  
  new L<S> lines;
3  
  
4  
  while (true) {
5  
    S line = suckFromChat();
6  
    if (line == null) return lines;
7  
    lines.add(line);
8  
    if (line.length() == 0) break;
9  
  }
10  
  
11  
  return lines;
12  
}

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: #1001185
Snippet name: getChatHistory
Eternal ID of this version: #1001185/1
Text MD5: fa9d7072c6173d524979bf14ba191f00
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-09-28 20:25:28
Source code size: 225 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 519 / 795
Referenced in: [show references]