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

9
LINES

< > BotCompany Repo | #1014234 // splitAtDoubleArrow_bothDirections - javaTok and split at "=>" (and trim) or "<=" (and reverse)

JavaX fragment (include)

static L<S> splitAtDoubleArrow_bothDirections(S s) {
  ret splitAtDoubleArrow_bothDirections(javaTok(s));
}

static L<S> splitAtDoubleArrow_bothDirections(L<S> tok) {
  L<S> l = splitAtDoubleArrow(tok);
  if (l(l) != 2) l = reversedList(splitAtDoubleLeftArrow(tok));
  ret l;
}

Author comment

Began life as a copy of #1011989

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: #1014234
Snippet name: splitAtDoubleArrow_bothDirections - javaTok and split at "=>" (and trim) or "<=" (and reverse)
Eternal ID of this version: #1014234/1
Text MD5: 6c5a78ae41766e7b683bb0b528dc6563
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-17 02:01:13
Source code size: 285 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 479 / 492
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)