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

4
LINES

< > BotCompany Repo | #1023656 // isTrueOrEmitFailure - call boolean-returning function, emit a Failure() object if it fails

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

Libraryless. Click here for Pure Java version (2014L/13K).

sbool mapLike isTrueOrEmitFailure(O f, O... args) {
  if (isTrue(callF(f, args))) true;
  ret false with emit(Failure(FunctionCall(f, args)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023656
Snippet name: isTrueOrEmitFailure - call boolean-returning function, emit a Failure() object if it fails
Eternal ID of this version: #1023656/1
Text MD5: b19dd905ba5dcc98fec50cf1c31d815a
Transpilation MD5: eb458743f7c3cf76997fb068cace4854
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-01 01:54:50
Source code size: 147 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 374
Referenced in: [show references]