Re: doc bug? index() doesn't check for equality in the same way as ==

2008-09-08 Fir de Conversatie Erik Falor
On Sun, Sep 7, 2008 at 6:33 PM, Matt Wozniski [EMAIL PROTECTED] wrote: Using ==, strings and numbers can compare as equal, and using index() on a list, this is not the case: :echo 2 == 2 Returns 1 :echo index( [ 2 ], 2) Returns -1 The docs just say that index() will Return

Re: doc bug? index() doesn't check for equality in the same way as ==

2008-09-08 Fir de Conversatie Bram Moolenaar
Matt Wozniski wrote: Using ==, strings and numbers can compare as equal, and using index() on a list, this is not the case: :echo 2 == 2 Returns 1 :echo index( [ 2 ], 2) Returns -1 The docs just say that index() will Return the lowest index in |List| {list} where the

doc bug? index() doesn't check for equality in the same way as ==

2008-09-07 Fir de Conversatie Matt Wozniski
Using ==, strings and numbers can compare as equal, and using index() on a list, this is not the case: :echo 2 == 2 Returns 1 :echo index( [ 2 ], 2) Returns -1 The docs just say that index() will Return the lowest index in |List| {list} where the item has a value equal to {expr},