Bill Allombert on Fri, 27 May 2022 16:40:58 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gen_search on 2.13.4 vs 2.14 |
On Fri, May 27, 2022 at 02:05:58PM +0000, James Rickards wrote: > I was switching between 2.13.4 and 2.14, and noticed that gen_search > is different. In particular, in 2.14, the flag that allows for > returning the insertion index has been removed. Yes Karim changed the API: 16- gen_search / vecvecsmall_search: remove flag; the result is now positive if the element is found else -i if element should be inserted at position i. To recover the result with flag=1, just check the sign of the result. Cheers, Bill