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

7
LINES

< > BotCompany Repo | #1003928 - inRange - checks if 0 <= x < n - or a <= x < b

JavaX fragment (include)

static bool inRange(int x, int n) {
  ret x >= 0 && x < n;
}

static bool inRange(int x, int a, int b) {
  ret x >= a && x < b;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003928
Snippet name: inRange - checks if 0 <= x < n - or a <= x < b
Eternal ID of this version: #1003928/4
Text MD5: 748142aee1a2f879038739914ad3d5f4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-02 00:03:09
Source code size: 135 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 444
Version history: 3 change(s)
Referenced in: [show references]