Libraryless. Click here for Pure Java version (2800L/16K).
sbool isOneOfSingleChars(S s, char... chars) { if (l(s) != 1) false; char real = s.charAt(0); fOr (char c : chars) if (real == c) true; false; }
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031438 |
Snippet name: | isOneOfSingleChars |
Eternal ID of this version: | #1031438/1 |
Text MD5: | 0ff360c09b078b5a0fd2cf345ba3b8be |
Transpilation MD5: | ea3489d1f37fd98d51a47d8518f344ee |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-12 09:26:15 |
Source code size: | 169 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 167 / 479 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |