Skip to main content

S

Constant S 

Source
pub const S: &str = "";
Expand description

Null value of string family (symbol, string).

ยงExample

use kdbplus::*;
use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn string_borders(_: K) -> K{
  let compound=new_list(qtype::COMPOUND_LIST, 2);
  let compound_slice=compound.as_mut_slice::<K>();
  compound_slice[0]=new_symbol(qnull_base::S);
  compound_slice[1]=new_string(qnull_base::S);
  compound
}
q)string_borders: `libapi_examples 2: (`string_borders; 1);
q)string_borders[]
`
""
q)null each string_borders[]
1b
`boolean$()