Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1011072 // startsAndEndsWith

JavaX fragment (include)

static bool startsAndEndsWith(S a, char c) {
  ret startsWith(a, c) && endsWith(a, c) && l(a) >= 2;
}

static bool startsAndEndsWith(S a, S b) {
  ret startsWith(a, b) && endsWith(a, b) && l(a) >= l(b)*2;
}

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: 418 / 455
Version history: 1 change(s)
Referenced in: [show references]