Skip to main content

new_short

Function new_short 

Source
pub fn new_short(short: I) -> K
Expand description

Constructor of q short object. Relabeling of kh.

ยงExample

use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn create_short(_: K) -> K{
  new_short(-144)
}
q)shortage: `libapi_examples 2: (`create_short; 1);
q)shortage[]
-144h