Transpiled version (13110L) is out of date.
static DoubleRange growRange(DoubleRange r, double amount) { ret r == null ?: doubleRange(r.start-amount, r.end+amount); } static DoubleRange growRange(double amount, DoubleRange r) { ret growRange(r, amount); } static IntRange growRange(IntRange r, int amount) { ret r == null ?: intRange(r.start-amount, r.end+amount); } static IntRange growRange(int amount, IntRange r) { ret growRange(r, amount); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035706 |
Snippet name: | growRange - grows to both sides |
Eternal ID of this version: | #1035706/3 |
Text MD5: | c3b8ed9423d034bb3095e9fd34721f46 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-11-14 18:45:15 |
Source code size: | 427 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 155 / 210 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036187 - growTimestampRange - grows to both sides |