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 4fa376b commit 6c47eacCopy full SHA for 6c47eac
Doc/library/itertools.rst
@@ -798,10 +798,10 @@ which incur interpreter overhead.
798
"Return first n items of the iterable as a list"
799
return list(islice(iterable, n))
800
801
- def prepend(value, iterator):
802
- "Prepend a single value in front of an iterator"
+ def prepend(value, iterable):
+ "Prepend a single value in front of an iterable"
803
# prepend(1, [2, 3, 4]) --> 1 2 3 4
804
- return chain([value], iterator)
+ return chain([value], iterable)
805
806
def tabulate(function, start=0):
807
"Return function(0), function(1), ..."
0 commit comments