Bill Allombert on Tue, 29 Nov 2016 18:26:03 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Search a VECSMALL?


On Sun, Nov 27, 2016 at 05:02:45PM -0500, Charles Greathouse wrote:
> setsearch and vecsearch don't work on vecsmall. Is there some other command
> that works on them? (If not, I have a feature request.)

You can do setsearch(Vec(x),...)

In C there is a function zv_search

Cheers,
Bill.