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)

1  
sbool getBool(O o, S field) {
2  
  ret isTrue(getOpt(o, field));
3  
}
4  
5  
sbool mapMethodLike getBool(S field, O o) {
6  
  ret getBool(o, field);
7  
}

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: 554 / 593
Version history: 2 change(s)
Referenced in: [show references]