We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d88e6 commit fe4bfe8Copy full SHA for fe4bfe8
cyaron/sequence.py
@@ -9,6 +9,8 @@ def __init__(self, formula, initial_values=()):
9
Create a sequence object.
10
int formula(int, function) -> the formula function ...
11
"""
12
+ if not callable(formula):
13
+ raise Exception("formula must be a function")
14
self.formula = formula
15
if list_like(initial_values):
16
self.values = dict(enumerate(initial_values))
0 commit comments