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

7
LINES

< > BotCompany Repo | #1024182 // swingIf

JavaX fragment (include)

sO swingIf(bool b, O f) {
  ret b ? swing(f) : callF(f);
}

static <A> A swingIf(bool b, F0<A> f) {
  ret b ? swing(f) : callF(f);
}

Author comment

Began life as a copy of #1004075

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024182
Snippet name: swingIf
Eternal ID of this version: #1024182/2
Text MD5: 92f18776968ccf04a88ea62269cb3422
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-24 16:01:21
Source code size: 138 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 223 / 265
Version history: 1 change(s)
Referenced in: [show references]