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

13
LINES

< > BotCompany Repo | #1020944 // match3_noWildcards - compare two sentences

JavaX fragment (include)

static boolean match3_noWildcards(S a, S b) {
  if (a == null || b == null) false;
  ret match3_noWildcards(parse3_noEllipsis_cachedInput(a), parse3_noEllipsis_cachedInput(b));
}
  
static boolean match3_noWildcards(LS tokA, LS tokB) {
  int n = l(tokA);
  if (n != l(tokB)) false;
  for (int i = 1; i < n; i += 2)
    if (!eqic(tokA.get(i), tokB.get(i)))
      false;
  true;
}

Author comment

Began life as a copy of #1001104

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020944
Snippet name: match3_noWildcards - compare two sentences
Eternal ID of this version: #1020944/3
Text MD5: ca8c6149292f072b4bc2fbef14f0542a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-08 13:35:33
Source code size: 390 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 254
Version history: 2 change(s)
Referenced in: [show references]