Top "Range" questions

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

Can I use the range operator with if statement in Swift?

Is it possible to use the range operator ... and ..< with if statement. Maye something like this: let statusCode = 204 if …

if-statement swift range
Javascript Array: get 'range' of items

Is there an equivalent for ruby's array[n..m] in Javascript ? For example: >> a = ['a','b','c','d',…

javascript ruby arrays range
Python - arranging words in alphabetical order

The program must print the name which is alphabetically the last one out of 8 elements. The names/words can be …

python list range alphabetical
Pandas: create new column in df with random integers from range

I have a pandas data frame with 50k rows. I'm trying to add a new column that is a randomly …

python pandas random integer range
built-in range or numpy.arange: which is more efficient?

When iterating over a large array with a range expression, should I use Python's built-in range function, or numpy's arange …

python numpy python-3.x range
Name 'xrange' is not defined in Python 3

I try to execute following code but can't with mistake: name 'xrange' is not defined pages = ( requests.get( build_group_…

python python-3.x range xrange
How to check if a number is included in a range (in one statement)?

I am using Ruby on Rails 3.0.9 and I would like to check if a number is included in a range. …

ruby-on-rails ruby ruby-on-rails-3 numbers range
How to know if today's date is in a date range?

I have an event with start_time and end_time and want to check if the event is "in progress". …

ruby date range
How to select values within a provided index range from a List using LINQ

I am a LINQ newbie trying to use it to acheive the following: I have a list of ints:- …

c# linq list range
Vim yanking range of lines

I'm a C# developer who has just recently decided to expand my knowledge of the tools available to me. The …

vim editor range vi yank