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

10
LINES

< > BotCompany Repo | #1026570 // gazelle_singleChangedWord_ifMoreThanOneWord - returns PairS or null

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

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

1  
static PairS gazelle_singleChangedWord_ifMoreThanOneWord(S inputA, S inputB, O... _) {
2  
  O tokenizer = optPar tokenizer(_, gazelle_zip_defaultTokenizer());
3  
  if (countTokens((LS) callF(tokenizer, inputA)) <= 1) null;
4  
  if (countTokens((LS) callF(tokenizer, inputB)) <= 1) null;
5  
  ret gazelle_singleChangedWord(inputA, inputB, _);
6  
}
7  
8  
static PairS gazelle_singleChangedWord_ifMoreThanOneWord(PairS inputs, O... _) {
9  
  ret gazelle_singleChangedWord_ifMoreThanOneWord(inputs.a, inputs.b, _);
10  
}

Author comment

Began life as a copy of #1023063

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: #1026570
Snippet name: gazelle_singleChangedWord_ifMoreThanOneWord - returns PairS or null
Eternal ID of this version: #1026570/1
Text MD5: 1e791cb84d81a6a29feb420c7e72fcb8
Transpilation MD5: b52a3b4e62cd8324c7dbcc727eb60fcb
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-14 00:32:49
Source code size: 498 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 355
Referenced in: [show references]