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.

1  
static Steppable combineSteppables_dontDropEnded(Iterable<? extends Steppable> steppables) {
2  
  L<? extends Steppable> steppablesList = nonNulls(steppables);
3  
  
4  
  ret -> {
5  
    bool change;
6  
    for (s : steppablesList)
7  
      change |= s.step();
8  
    ret change;
9  
  };
10  
}
11  
12  
static <A extends Steppable> Steppable combineSteppables_dontDropEnded(A... steppables) {
13  
  ret combineSteppables(asList(steppables));
14  
}

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: 159 / 204
Version history: 3 change(s)
Referenced in: [show references]