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

7
LINES

< > BotCompany Repo | #1005405 // getBool - getOpt with cast to bool (or false)

JavaX fragment (include)

sbool getBool(O o, S field) {
  ret isTrue(getOpt(o, field));
}

sbool mapMethodLike getBool(S field, O o) {
  ret getBool(o, field);
}

Author comment

Began life as a copy of #1005404

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1005405
Snippet name: getBool - getOpt with cast to bool (or false)
Eternal ID of this version: #1005405/3
Text MD5: cbdf663428d843fe2b6249c83e02fbca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-21 00:03:52
Source code size: 141 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 479 / 511
Version history: 2 change(s)
Referenced in: [show references]