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

4
LINES

< > BotCompany Repo | #1016779 // ai_applyPrefixPair

JavaX fragment (include)

static LS ai_applyPrefixPair(Pair<LS> p, LS x) {
  if (p == null || !listStartsWithCI(x, p.a)) ret x;
  ret concatLists(p.b, subList(x, l(p.a)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016779
Snippet name: ai_applyPrefixPair
Eternal ID of this version: #1016779/3
Text MD5: 6eac2a78a6a6a4a48fcb1366505bda42
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-02 13:48:31
Source code size: 150 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 317 / 364
Version history: 2 change(s)
Referenced in: [show references]