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

14
LINES

< > BotCompany Repo | #1035018 // combineSteppables_dontDropEnded

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

Transpiled version (5384L) is out of date.

static Steppable combineSteppables_dontDropEnded(Iterable<? extends Steppable> steppables) {
  L<? extends Steppable> steppablesList = nonNulls(steppables);
  
  ret -> {
    bool change;
    for (s : steppablesList)
      change |= s.step();
    ret change;
  };
}

static <A extends Steppable> Steppable combineSteppables_dontDropEnded(A... steppables) {
  ret combineSteppables(asList(steppables));
}

Author comment

Began life as a copy of #1035017

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035018
Snippet name: combineSteppables_dontDropEnded
Eternal ID of this version: #1035018/4
Text MD5: e46f06b49d67c6c78f6094105ccf9d64
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-22 23:59:08
Source code size: 416 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 201
Version history: 3 change(s)
Referenced in: [show references]