1 | static bool startsAndEndsWith(S a, char c) {
|
2 | ret startsWith(a, c) && endsWith(a, c) && l(a) >= 2; |
3 | } |
4 | |
5 | static bool startsAndEndsWith(S a, S b) {
|
6 | ret startsWith(a, b) && endsWith(a, b) && l(a) >= l(b)*2; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011072 |
| Snippet name: | startsAndEndsWith |
| Eternal ID of this version: | #1011072/2 |
| Text MD5: | e00098b88e9877b90cf728e33d928f0d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-21 17:24:05 |
| Source code size: | 212 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 702 / 765 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |