Libraryless. Click here for Pure Java version (2800L/16K).
1 | sbool isOneOfSingleChars(S s, char... chars) { |
2 | if (l(s) != 1) false; |
3 | char real = s.charAt(0); |
4 | fOr (char c : chars) |
5 | if (real == c) |
6 | true; |
7 | false; |
8 | } |
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: | 168 / 480 |
Referenced in: | [show references] |