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

4
LINES

< > BotCompany Repo | #1032028 // stepUntil - checks condition first

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

Libraryless. Click here for Pure Java version (2990L/17K).

svoid stepUntil(Steppable s, IF0<Bool> condition) {
  if (s != null)
    while ping (!condition.get() && s.step()) {}
}

Author comment

Began life as a copy of #1024992

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032028
Snippet name: stepUntil - checks condition first
Eternal ID of this version: #1032028/1
Text MD5: b6205f0fc73ffff4c0dbcfff3def767d
Transpilation MD5: be9e8a642294d470aef328f20436e7a6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 03:49:04
Source code size: 124 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 69 / 105
Referenced in: [show references]