1 | static int indexOfFirstLetter(S s) { |
2 | int n = l(s); |
3 | for i to n: |
4 | if (isLetter(s.charAt(i))) |
5 | ret i; |
6 | ret -1; |
7 | } |
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: | #1024386 |
Snippet name: | indexOfFirstLetter |
Eternal ID of this version: | #1024386/1 |
Text MD5: | fd8cc46e9192f067d19bb01d747d8504 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-08 17:10:50 |
Source code size: | 128 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 265 / 284 |
Referenced in: | [show references] |