We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afa3e69 + ea9705d commit 2e3a3dcCopy full SHA for 2e3a3dc
1 file changed
maz/__init__.py
@@ -124,18 +124,13 @@ def compose(*functions):
124
125
return functools.reduce(compose_pair, functions)
126
127
-def indexing(lst: list, index_item, default = None):
+def indexing(lst: list, index_item):
128
129
"""
130
Indexing function, taking a list and what to
131
- index, as such lst[index_item]. If index_item
132
- not in lst, then default is returned.
+ index, as such lst[index_item].
133
134
-
135
- try:
136
- return lst[index_item]
137
- except:
138
- return default
+ return lst[index_item]
139
140
def invoke(fn, args: list = [], kwargs: dict = {}):
141
0 commit comments