Top "Range" questions

A range is an extent of values between its lower and upper bound.

How to get nodes lying inside a range with javascript?

I'm trying to get all the DOM nodes that are within a range object, what's the best way to do …

javascript dom range traversal
Make a range in postgres

How can I make a range in a select in PostgreSQL? I'd like to have this result: num --- 1 2 3 4 5 6 From …

sql postgresql select range intervals
How to define dynamic ranges on Calc (or Excel)?

Let's say I have a Libreoffice.org Calc (maybe this goes for MS Excel too) object defined as the range $…

excel range libreoffice-calc
String, substring, Range, NSRange in Swift 4

I am using the following code to get a String substring from an NSRange: func substring(with nsrange: NSRange) -&…

string range nsrange swift4
Styling HTML5's input range control with CSS?

If so, how? I want to make the slider look like this: Which involves changing the color of the draggable …

css html input slider range
Initializer list in a range for loop

I have objects of different types derived from a single super-type. I wonder if there are any disadvantages in using …

c++ c++11 for-loop range initializer-list
How Do I Loop Through a Date Range in Reverse?

I have a date range that I would like to be able to loop through in reverse. Give the following, …

ruby-on-rails ruby range date-range
Fast Algorithm to Quickly Find the Range a Number Belongs to in a Set of Ranges?

The Scenario I have several number ranges. Those ranges are not overlapping - as they are not overlapping, the logical …

algorithm search range
In Kotlin can I create a range that counts backwards?

I looked at the documentation for the Ranges and I see no mention of backwards ranges. Is it possible to …

range kotlin
How to normalize a list of positive and negative decimal number to a specific range

I have a list of decimal numbers as follows: [-23.5, -12.7, -20.6, -11.3, -9.2, -4.5, 2, 8, 11, 15, 17, 21] I need to normalize this …

python list range normalize