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
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
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},