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

11
LINES

< > BotCompany Repo | #1026618 // ai_allBridgeSextets

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

Libraryless. Click here for Pure Java version (3291L/20K).

1  
static ItIt<Pair<T3S>> ai_allBridgeSextets(S lineA, S lineB, O... _) {
2  
  ret ai_allBridgeSextets(nlTok6(lineA), nlTok6(lineB));
3  
}
4  
5  
// optional parameter: plusFull (default false)
6  
static ItIt<Pair<T3S>> ai_allBridgeSextets(LS tokA, LS tokB, O... _) {
7  
  L<IntRange> rangesA = asList(wordIntRangesIterator_shortestFirst(tokA, plusFull := true));
8  
  L<IntRange> rangesB = asList(wordIntRangesIterator_shortestFirst(tokB, plusFull := true));
9  
  ret mapI(combineZigZag(rangesA, rangesB),
10  
    ranges -> ai_bridgeTriples(tokA, tokB, ranges.a, ranges.b));
11  
}

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: #1026618
Snippet name: ai_allBridgeSextets
Eternal ID of this version: #1026618/4
Text MD5: 88da8e4be963ce93f096806c4d123478
Transpilation MD5: 71422439df61a612993bd19ddec39e06
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-16 18:31:25
Source code size: 556 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 301
Version history: 3 change(s)
Referenced in: [show references]