Fixed comparison: i < k < j should be i <= k < j.
This commit is contained in:
parent
c7ff85d612
commit
54e39908d8
|
@ -674,7 +674,7 @@ the numbers $0, 1, \ldots, n-1$. Element \verb\i\ of sequence
|
||||||
\index{subscription}
|
\index{subscription}
|
||||||
|
|
||||||
Sequences also support slicing: \verb\a[i:j]\ selects all elements
|
Sequences also support slicing: \verb\a[i:j]\ selects all elements
|
||||||
with index $k$ such that $i < k < j$. When used as an expression,
|
with index $k$ such that $i <= k < j$. When used as an expression,
|
||||||
a slice is a sequence of the same type --- this implies that the
|
a slice is a sequence of the same type --- this implies that the
|
||||||
index set is renumbered so that it starts at 0 again.
|
index set is renumbered so that it starts at 0 again.
|
||||||
\index{slicing}
|
\index{slicing}
|
||||||
|
|
|
@ -674,7 +674,7 @@ the numbers $0, 1, \ldots, n-1$. Element \verb\i\ of sequence
|
||||||
\index{subscription}
|
\index{subscription}
|
||||||
|
|
||||||
Sequences also support slicing: \verb\a[i:j]\ selects all elements
|
Sequences also support slicing: \verb\a[i:j]\ selects all elements
|
||||||
with index $k$ such that $i < k < j$. When used as an expression,
|
with index $k$ such that $i <= k < j$. When used as an expression,
|
||||||
a slice is a sequence of the same type --- this implies that the
|
a slice is a sequence of the same type --- this implies that the
|
||||||
index set is renumbered so that it starts at 0 again.
|
index set is renumbered so that it starts at 0 again.
|
||||||
\index{slicing}
|
\index{slicing}
|
||||||
|
|
Loading…
Reference in New Issue