static bool endsWith(S a, S b) { ret a != null && a.endsWith(b); } static bool endsWith(S a, char c) { ret nempty(a) && lastChar(a) == c; } ifclass Matches static bool endsWith(S a, S b, Matches m) { if (!endsWith(a, b)) false; m.m = new S[] {dropLast(l(b), a)}; true; } endif
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003800 |
Snippet name: | endsWith |
Eternal ID of this version: | #1003800/4 |
Text MD5: | 1703271ef2b9bffcc505645fe6d4d289 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-13 03:46:34 |
Source code size: | 314 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 785 / 1453 |
Version history: | 3 change(s) |
Referenced in: | [show references] |