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

5
LINES

< > BotCompany Repo | #1022532 - combineIntRanges

JavaX fragment (include)

static IntRange combineIntRanges(IntRange a, IntRange b) {
  if (a == null) ret b;
  if (b == null) ret a;
  ret intRange(min(a.start, b.start), max(a.end, b.end));
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1022532
Snippet name: combineIntRanges
Eternal ID of this version: #1022532/1
Text MD5: 53faedd329a3e80c5ffe825efc912689
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-20 12:07:40
Source code size: 170 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 54 / 54
Referenced in: [show references]

Formerly at http://tinybrain.de/1022532 & http://1022532.tinybrain.de