1 | static int addBools(bool... x) { |
2 | int i = 0; |
3 | if (x != null) for (bool b : x) |
4 | if (b) ++i; |
5 | ret i; |
6 | } |
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: | 351 / 407 |
Version history: | 1 change(s) |
Referenced in: | [show references] |