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).

static PairS gazelle_singleChangedWord_ifMoreThanOneWord(S inputA, S inputB, O... _) {
  O tokenizer = optPar tokenizer(_, gazelle_zip_defaultTokenizer());
  if (countTokens((LS) callF(tokenizer, inputA)) <= 1) null;
  if (countTokens((LS) callF(tokenizer, inputB)) <= 1) null;
  ret gazelle_singleChangedWord(inputA, inputB, _);
}

static PairS gazelle_singleChangedWord_ifMoreThanOneWord(PairS inputs, O... _) {
  ret gazelle_singleChangedWord_ifMoreThanOneWord(inputs.a, inputs.b, _);
}

Author comment

Began life as a copy of #1023063

download  show line numbers  debug dex   

Travelled to 3 computer(s): mqqgnosmbjvj, tvejysmllsmz, 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: 13 / 21
Referenced in: #1006654

Formerly at http://tinybrain.de/1026570 & http://1026570.tinybrain.de