pub fn not(array: &BooleanArray) -> BooleanArray {
    let values = !array.values();
    let validity = array.validity().clone();
    BooleanArray::from_data(values, validity)
}
/// Performs unary `NOT` operation on an arrays. If value is null then the result is also
/// null.
/// # Example
/// ```rust
/// use arrow2::array::BooleanArray;
/// use arrow2::compute::boolean::not;
/// # fn main() {
/// let a = BooleanArray::from(vec![Some(false), Some(true), None]);
/// let not_a = not(&a);
/// assert_eq!(not_a, BooleanArray::from(vec![Some(true), Some(false), None]));
/// # }
/// ```
Performs unary `NOT` operation on an arrays. If value is null then the result is also
null.
Performs unary ` NOT ` operation on an arrays . If value is null then the result is also null .
pub fn not(array: &BooleanArray) -> BooleanArray {
    let values = !array.values();
    let validity = array.validity().clone();
    BooleanArray::from_data(values, validity)
}
pub fn not ( array : & BooleanArray ) -> BooleanArray { let values = ! array . values ( ) ; let validity = array . validity ( ) . clone ( ) ; BooleanArray :: from_data ( values , validity ) }
Performs unary `NOT` operation on an arrays.
Performs unary ` NOT ` operation on an arrays .
array
&BooleanArray
array
&BooleanArray
example
```rust
use arrow2::array::BooleanArray;
use arrow2::compute::boolean::not.
` ` ` rust use arrow2 :: array :: BooleanArray ; use arrow2 :: compute :: boolean :: not .
fn main() {
let a = BooleanArray::from(vec![Some(false), Some(true), None]);
let not_a = not(&a);
assert_eq!(not_a, BooleanArray::from(vec![Some(true), Some(false), None])).
let a = BooleanArray :: from ( vec! [ Some ( false ) Some ( true ) None ] ) ; let not_a = not ( &a ) ; assert_eq! ( not_a BooleanArray :: from ( vec! [ Some ( true ) Some ( false ) None ] )) .
}
None