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

7
LINES

< > BotCompany Repo | #1003973 // startsWithOneOf - startsWith, multiple checks

JavaX fragment (include)

1  
static bool startsWithOneOf(S s, S... l) {
2  
  for (S x : l) if (startsWith(s, x)) ret true; ret false;
3  
}
4  
5  
static bool startsWithOneOf(S s, Matches m, S... l) {
6  
  for (S x : l) if (startsWith(s, x, m)) true; false;
7  
}

Author comment

Began life as a copy of #1003652

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003973
Snippet name: startsWithOneOf - startsWith, multiple checks
Eternal ID of this version: #1003973/2
Text MD5: e27991adbdd05a967341ff24c0f146e9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-03 00:09:38
Source code size: 220 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 672 / 705
Version history: 1 change(s)
Referenced in: [show references]