static S leadingWord(S s) { int i = 0; while (i < l(s) && Character.isLetter(s.charAt(i))) ++i; ret substring(s, 0, i); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005304 |
Snippet name: | leadingWord - return word at beginning of string |
Eternal ID of this version: | #1005304/1 |
Text MD5: | 14d2442bb6e901c6afa7a13d4beb560d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-10-30 22:02:32 |
Source code size: | 136 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 661 / 645 |
Referenced in: | [show references] |