Warning: session_start(): open(/var/lib/php/sessions/sess_uo2k0tc9qturc8lutcasl2bebf, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
startsAndEndsWith [1011072]

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: 828 / 884
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)