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

3
LINES

< > BotCompany Repo | #1025596 // emptyOrEqAny - check if string is empty or in a list

JavaX fragment (include)

sbool emptyOrEqAny(S s, S... values) {
  ret empty(s) || eqOneOf(s, values);
}

Author comment

Began life as a copy of #1025595

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025596
Snippet name: emptyOrEqAny - check if string is empty or in a list
Eternal ID of this version: #1025596/1
Text MD5: 7ac9250fbb3e82da4f9547c9a1130598
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-07 12:29:49
Source code size: 80 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 216
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)