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

3
LINES

< > BotCompany Repo | #1003652 // eqOneOf - equals, multiple checks

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (55L/1K).

1  
static bool eqOneOf(O o, O... l) {
2  
  if (l != null) for (O x : l) if (eq(o, x)) true; false;
3  
}

Author comment

Began life as a copy of #1003577

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003652
Snippet name: eqOneOf - equals, multiple checks
Eternal ID of this version: #1003652/2
Text MD5: 64fe1b757a17290b96e216ea36d4e632
Transpilation MD5: 9662518fff64764b039f815bcdbc5dcf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-08 18:42:18
Source code size: 96 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 866 / 1524
Version history: 1 change(s)
Referenced in: [show references]