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

5
LINES

< > BotCompany Repo | #1004029 // growPrefix

JavaX fragment (include)

1  
static S growPrefix(S a, S b) {
2  
  if (b.endsWith(a))
3  
    ret b.substring(0, l(b)-l(a)) + b;
4  
  null;
5  
}

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: #1004029
Snippet name: growPrefix
Eternal ID of this version: #1004029/1
Text MD5: 08e60447e2bed2add9563756c108ee24
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-04 03:21:25
Source code size: 105 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 524 / 575
Referenced in: [show references]