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

13
LINES

< > BotCompany Repo | #1027759 - AllOnAllWithOperation

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

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

sclass AllOnAllWithOperation<A, B> extends AllOnAll<A, B> implements Steppable {
  swappable void operation(A a, B b) {}
  
  *() {}
  *(IVF2<A, B> *operation) {}

  public bool step() {
    Pair<A, B> p = next();
    if (p == null) false;
    operation(p.a, p.b);
    true;
  }
}

Author comment

Began life as a copy of #1027757

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027759
Snippet name: AllOnAllWithOperation
Eternal ID of this version: #1027759/3
Text MD5: 1081016b977eb45eaf40aafa9b8821b9
Transpilation MD5: 733771511bd56892de2ac9f92054a665
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-10 01:02:12
Source code size: 292 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 40 / 164
Version history: 2 change(s)
Referenced in: [show references]

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