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)

// use auto-operator
static L<S> ai_operands(S s) {
  ret ai_operands(ai_getOperator(s), s);
}

static L<S> ai_operands(L<S> operator, S s) {
  L<S> tok = javaTokPlusBracketsC_unquote(s);
  assertSameLength(operator, tok);
  new L<S> operands;
  for i over operator:
    if (isStar(operator.get(i)))
      operands.add(tok.get(i));
  ret operands;
}

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: 506 / 501
Version history: 3 change(s)
Referenced in: [show references]