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

7
LINES

< > BotCompany Repo | #1023666 // valueIs1 - check if value of key in string map is "1" (good for HTTP requests)

JavaX fragment (include)

sbool mapMethodLike valueIs1(S key, SS map) {
  ret eq("1", mapGet(map, key));
}

sbool mapMethodLike valueIs1(SS map, S key) {
  ret valueIs1(key, map);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023666
Snippet name: valueIs1 - check if value of key in string map is "1" (good for HTTP requests)
Eternal ID of this version: #1023666/2
Text MD5: caeb25d6557d9f9d75b25a82ced47e2f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-20 21:11:33
Source code size: 157 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 258
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)