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

16
LINES

< > BotCompany Repo | #1009998 // boolOptParam - get boolean optional parameter - defaults to false

JavaX fragment (include)

1  
sbool boolOptParam(ThreadLocal<Bool> tl) {
2  
  ret isTrue(optPar(tl));
3  
}
4  
5  
// defaults to false
6  
sbool boolOptParam(O[] _, S name) {
7  
  ret isTrue(optParam(_, name));
8  
}
9  
10  
sbool mapMethodLike boolOptParam(S name, O[] _) {
11  
  ret boolOptParam(_, name);
12  
}
13  
14  
sbool mapMethodLike boolOptParam(S name, Map _) {
15  
  ret isTrue(optPar(name, _));
16  
}

Author comment

Began life as a copy of #1007397

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009998
Snippet name: boolOptParam - get boolean optional parameter - defaults to false
Eternal ID of this version: #1009998/6
Text MD5: ea58d93e9d84334a5aa949d03973ef7d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-16 22:10:49
Source code size: 344 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 683 / 724
Version history: 5 change(s)
Referenced in: [show references]