static int addBools(bool... x) { int i = 0; if (x != null) for (bool b : x) if (b) ++i; ret i; }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019083 |
Snippet name: | addBools - add bools (false=0, true=1) |
Eternal ID of this version: | #1019083/2 |
Text MD5: | 410a6112a7b54097f7fb52cc379e6c63 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-23 01:18:42 |
Source code size: | 111 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 350 / 405 |
Version history: | 1 change(s) |
Referenced in: | [show references] |