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

7
LINES

< > BotCompany Repo | #1027900 // ai_parseAmpersandToAndObjects

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2886L/18K).

1  
// returns And(...) or string
2  
// could be optimized
3  
sO ai_parseAmpersandToAndObjects(S s) {
4  
  LS l = tok_splitAtAmpersand(s);
5  
  if (l(l) == 1) ret s;
6  
  ret And(first(l), ai_parseAmpersandToAndObjects(join(" & ", dropFirst(l))));
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027900
Snippet name: ai_parseAmpersandToAndObjects
Eternal ID of this version: #1027900/1
Text MD5: 848fc0d25d5a8d7432e59cec3114050a
Transpilation MD5: 3018346b3c32019b2a3aaffe26662913
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-16 16:57:54
Source code size: 236 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 269
Referenced in: [show references]