Category "sequence"

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#?