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

3
LINES

< > BotCompany Repo | #1034974 // modRange_incl

JavaX fragment (include)

static int modRange_incl(int i, int start, int end) {
  ret start+mod(i-start, end-start+1);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034974
Snippet name: modRange_incl
Eternal ID of this version: #1034974/1
Text MD5: a562d053250b014e1ba021886ee0973f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-19 19:18:47
Source code size: 96 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 72 / 90
Referenced in: [show references]