First item with a key-value greater-than or equal to k.
(seq, k)
| 266 | return -1 |
| 267 | |
| 268 | def slow_find_ge(seq, k): |
| 269 | 'First item with a key-value greater-than or equal to k.' |
| 270 | for item in seq: |
| 271 | if item >= k: |
| 272 | return item |
| 273 | return -1 |
| 274 | |
| 275 | def slow_find_gt(seq, k): |
| 276 | 'First item with a key-value greater-than or equal to k.' |