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

14
LINES

< > BotCompany Repo | #1013227 // ai_operands - see ai_getOperator

JavaX fragment (include)

1  
// use auto-operator
2  
static L<S> ai_operands(S s) {
3  
  ret ai_operands(ai_getOperator(s), s);
4  
}
5  
6  
static L<S> ai_operands(L<S> operator, S s) {
7  
  L<S> tok = javaTokPlusBracketsC_unquote(s);
8  
  assertSameLength(operator, tok);
9  
  new L<S> operands;
10  
  for i over operator:
11  
    if (isStar(operator.get(i)))
12  
      operands.add(tok.get(i));
13  
  ret operands;
14  
}

Author comment

Began life as a copy of #1013197

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: #1013227
Snippet name: ai_operands - see ai_getOperator
Eternal ID of this version: #1013227/4
Text MD5: 3a37d8a6edf6bfba0a654c27950e3922
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-28 23:29:12
Source code size: 362 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 503
Version history: 3 change(s)
Referenced in: [show references]