Remove dead man walking set generator.

This commit is contained in:
Cédric Bonhomme 2017-03-09 10:02:52 +01:00
parent 7c9530aa9d
commit b31d830c76
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
2 changed files with 2 additions and 13 deletions

View file

@ -37,14 +37,6 @@ def identity() -> Iterator[int]:
yield n
n += 1
def Dead_Man_Walking() -> Iterator[int]:
"""Dead Man Walking.
"""
n = 0
while True:
yield n + 7
n += 2
def triangular_numbers() -> Iterator[int]:
"""http://oeis.org/A000217
Triangular numbers: a(n) = C(n+1,2) = n(n+1)/2 = 0+1+2+...+n.