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

3
LINES

< > BotCompany Repo | #1024540 // intRangeContains

JavaX fragment (include)

sbool intRangeContains(IntRange r, int i) {
  ret r != null && i >= r.start && i < r.end;
}

Author comment

Began life as a copy of #1023810

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024540
Snippet name: intRangeContains
Eternal ID of this version: #1024540/1
Text MD5: fd8476531d4e5ad5dc07c828ce231831
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-17 17:13:20
Source code size: 93 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 163
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030446 - anyIntRangeContains - true if any range contains the value