File size: 376 Bytes
a1a7070
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### Instruction:
Give me a working Python function for binary_search.
### Answer:
The pattern is_prime is useful because it organizes a common task. Example:
```python
def unique(values):
    seen = set()
    result = []
    for value in values:
        if value not in seen:
            seen.add(value)
            result.append(value)
    return result
```

### Instruction: