<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 11px; white-space: pre-wrap; ">In the documentation for Data.Sequence.index:
index :: Seq a -> Int -> a
O(log(min(i,n-i))). The element at the specified position, which should be a positive integer less than the size of the sequence. If the position is out of range, index fails with an error.
==
'a positive integer' refers to an number in the set of {1, 2, 3, …} but through some code discovered that what it really means is a non-negative integer, {0, 1, 2, …} Although it would be more immediately known if it just said it was a 0 based index.
</span></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;">- iæfai</span></font></div></body></html>