diff options
-rw-r--r-- | Doc/lib/libitertools.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libitertools.tex b/Doc/lib/libitertools.tex index 88639dc..6f125a6 100644 --- a/Doc/lib/libitertools.tex +++ b/Doc/lib/libitertools.tex @@ -282,7 +282,7 @@ by functions or loops that truncate the stream. This makes possible an idiom for clustering a data series into n-length groups using \samp{izip(*[iter(s)]*n)}. For data that doesn't fit n-length groups exactly, the last tuple can be pre-padded with fill - values using \samp(izip(*[chain(s, [None]*(n-1))]*n)}. + values using \samp{izip(*[chain(s, [None]*(n-1))]*n)}. Note, when \function{izip()} is used with unequal length inputs, subsequent iteration over the longer iterables cannot reliably be continued after @@ -291,7 +291,7 @@ by functions or loops that truncate the stream. from each iterator in-turn, but the process ends when one of the iterators terminates. This leaves the last fetched values in limbo (they cannot be returned in a final, incomplete tuple and they are cannot be pushed back - into the iterator for retrieval with \code{it.next()}. In general, + into the iterator for retrieval with \code{it.next()}). In general, \function{izip()} should only be used with unequal length inputs when you don't care about trailing, unmatched values from the longer iterables. \end{funcdesc} |