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

15
LINES

< > BotCompany Repo | #1002994 // Is * a typical bot id

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

Libraryless. Click here for Pure Java version (988L/7K/22K).

1  
!752
2  
3  
answer {
4  
  if (!tb()) null;
5  
  
6  
  if "is * a typical bot id"
7  
    ret yn(isTypicalBotID(m.unq(0)));
8  
}
9  
10  
static boolean isTypicalBotID(S s) {
11  
  if (!isInteger(s)) ret false;
12  
  if (eq(l(s), 4)) ret true;
13  
  if (eq(l(s), 7) && s.startsWith("100")) ret true;
14  
  ret false;
15  
}

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: #1002994
Snippet name: Is * a typical bot id
Eternal ID of this version: #1002994/1
Text MD5: b8abe1f941746cea7c85ed26e6724f2b
Transpilation MD5: bb178026dec920e021f79730ccd96777
Author: stefan
Category: eleu
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-15 17:55:37
Source code size: 285 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 795 / 865
Referenced in: [show references]