Great! That's exactly what I wanted. Works with floats too. Thanks, Martin Robert Kern wrote: > Mostly, it's simply easy enough to implement yourself. Not all one-liners should > be methods on the array object. > > (a == value).sum() >