Function kdbplus::api::new_null [−][src]
pub fn new_null() -> K
Expand description
Constructor of q general null.
Example
use kdbplus::qtype; use kdbplus::api::*; #[no_mangle] pub extern "C" fn nullify(_: K) -> K{ let nulls=new_simple_list(qtype::COMPOUND_LIST, 3); let null_slice=nulls.as_mut_slice::<K>(); null_slice[0]=new_null(); null_slice[1]=new_string("null is not a general null"); null_slice[2]=new_null(); nulls }
q)void: `libapi_examples 2: (`nullify; 1);
q)void[]
::
"null is not a general null"
::