Lines Matching refs:keyfunc
210 keyfunc = abs
211 arr = sorted([2, -4, 6, 8, -10], key=keyfunc)
212 precomputed_arr = list(map(keyfunc, arr))
215 mod.bisect_left(arr, x, key=keyfunc),
219 mod.bisect_right(arr, x, key=keyfunc),
223 keyfunc = str.casefold
224 arr = sorted('aBcDeEfgHhiIiij', key=keyfunc)
225 precomputed_arr = list(map(keyfunc, arr))
228 mod.bisect_left(arr, x, key=keyfunc),
232 mod.bisect_right(arr, x, key=keyfunc),
242 keyfunc = abs
247 mod.insort_left(target, x, key=keyfunc)
249 sorted(target, key=keyfunc),
254 mod.insort_right(target, x, key=keyfunc)
256 sorted(target, key=keyfunc),