Skip to main content

kb

Function kb 

Source
pub unsafe extern "C" fn kb(boolean: I) -> K
Expand description

Constructor of q bool object.

ยงExample

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

#[no_mangle]
pub extern "C" fn create_bool(_: K) -> K{
  unsafe{kb(1)}
}
q)yes: libc_api_examples 2: (`create_bool; 1);
q)yes[]
1b