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

4
LINES

< > BotCompany Repo | #1024363 // ai_deduceReplaceSuffixIC - deduce ReplaceSuffixIC operation from two strings

JavaX fragment (include)

static ReplaceSuffixIC ai_deduceReplaceSuffixIC(S a, S b) {
  int common = lCommonPrefixIC(a, b);
  ret common == 0 ? null : ReplaceSuffixIC(dropFirst(a, common), dropFirst(b, common));
}

Author comment

Began life as a copy of #1022598

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024363
Snippet name: ai_deduceReplaceSuffixIC - deduce ReplaceSuffixIC operation from two strings
Eternal ID of this version: #1024363/1
Text MD5: 7b266d80e5d691115b7d9cbd99004a1c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-06 21:26:37
Source code size: 190 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 251 / 280
Referenced in: [show references]