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

7
LINES

< > BotCompany Repo | #1001378 // countBotsNamed

JavaX fragment (include)

1  
static long countBotsNamed(S searchPattern) {
2  
  long count = 0;
3  
  for (ProgramScan.Program p : quickBotScan())
4  
    if (indexOfIgnoreCase(p.helloString, searchPattern) == 0)
5  
      ++count;
6  
  return count;
7  
}

Author comment

Began life as a copy of #1001303

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: #1001378
Snippet name: countBotsNamed
Eternal ID of this version: #1001378/4
Text MD5: 9b83ab8c507a7231c1fca0cfe08598f4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-03 15:08:58
Source code size: 211 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 593 / 827
Version history: 3 change(s)
Referenced in: [show references]