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

static ItIt<Pair<T3S>> ai_allBridgeSextets(S lineA, S lineB, O... _) {
  ret ai_allBridgeSextets(nlTok6(lineA), nlTok6(lineB));
}

// optional parameter: plusFull (default false)
static ItIt<Pair<T3S>> ai_allBridgeSextets(LS tokA, LS tokB, O... _) {
  L<IntRange> rangesA = asList(wordIntRangesIterator_shortestFirst(tokA, plusFull := true));
  L<IntRange> rangesB = asList(wordIntRangesIterator_shortestFirst(tokB, plusFull := true));
  ret mapI(combineZigZag(rangesA, rangesB),
    ranges -> ai_bridgeTriples(tokA, tokB, ranges.a, ranges.b));
}

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: 146 / 204
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1026621 - ai_allSameMiddleZShapeBridgeSextets