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

3
LINES

< > BotCompany Repo | #1018542 // fileAsArgumentOr

JavaX fragment (include)

static File fileAsArgumentOr(S[] args, F0<File> f) {
  ret nempty(args) ? newFile(first(args)) : callF(f);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018542
Snippet name: fileAsArgumentOr
Eternal ID of this version: #1018542/2
Text MD5: 415fe46157cd331cc814883624c24302
Author: stefan
Category: javax / program arguments
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-04 00:13:23
Source code size: 110 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 233 / 266
Version history: 1 change(s)
Referenced in: [show references]