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

7
LINES

< > BotCompany Repo | #1032983 // shiftDoubleRange

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3976L) is out of date.

static DoubleRange shiftDoubleRange(DoubleRange r, double shift) {
  ret r == null ?: DoubleRange(r.start+shift, r.end+shift);
}

static DoubleRange shiftDoubleRange(double shift, DoubleRange r) {
  ret shiftDoubleRange(r, shift);
}

Author comment

Began life as a copy of #1032982

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032983
Snippet name: shiftDoubleRange
Eternal ID of this version: #1032983/2
Text MD5: 0702b4fbc3cdc474baed68bd4c538450
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 17:11:29
Source code size: 234 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 181 / 239
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)