Category "sequence"

Postgresql - SQL query to list all sequences in database

I would like to select all sequences in the database, get the schema of sequence, dependent table, the schema of a table, dependent column. I've tried the follo

Sequence construction that creates an empty sequence if lower is greater than upper bound

More than once the "cleverness" of R's seq function has hit me badly in the corner case when lower == upper - 1: > 1:0 [1] 1 0 > seq(1, 0) [1] 1 0 > s

Find numbers in Python list which are within a certain distance of each other

I have a list of numbers in Python. It looks like this: a = [87, 84, 86, 89, 90, 2014, 1000, 1002, 997, 999] I want to keep all the numbers which are within

How to create a sequence of integers in C#?

F# has sequences that allows to create sequences: seq { 0 .. 10 } Create sequence of numbers from 0 to 10. Is there something similar in C#?