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

3
LINES

< > BotCompany Repo | #1013383 // boolDiff - compare booleans and return -1, 0 or 1

JavaX fragment (include)

static int boolDiff(bool a, bool b) {
  ret a == b ? 0 : (a ? 1 : -1);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013383
Snippet name: boolDiff - compare booleans and return -1, 0 or 1
Eternal ID of this version: #1013383/1
Text MD5: 25bdae641d521a3b314656785ad76be5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-03 23:40:18
Source code size: 74 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 356
Referenced in: [show references]