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)

sbool boolOptParam(ThreadLocal<Bool> tl) {
  ret isTrue(optPar(tl));
}

// defaults to false
sbool boolOptParam(O[] _, S name) {
  ret isTrue(optParam(_, name));
}

sbool mapMethodLike boolOptParam(S name, O[] _) {
  ret boolOptParam(_, name);
}

sbool mapMethodLike boolOptParam(S name, Map _) {
  ret isTrue(optPar(name, _));
}

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: 595 / 637
Version history: 5 change(s)
Referenced in: [show references]