@thi.ng/pointfree
Version:
Pointfree functional composition / Forth style stack execution engine
85 lines • 2.32 kB
TypeScript
/**
* Stack effect: `( x y -- x===y )`
*
* @param ctx -
*/
export declare const eq: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- equiv(x,y) )`
*
* @param ctx -
*/
export declare const equiv: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x!==y )`
*
* @param ctx -
*/
export declare const neq: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x&&y )`
*
* @param ctx -
*/
export declare const and: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x||y )`
*
* @param ctx -
*/
export declare const or: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x -- !x )`
*
* @param ctx -
*/
export declare const not: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x<y )`
*
* @param ctx -
*/
export declare const lt: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x>y )`
*
* @param ctx -
*/
export declare const gt: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x<=y )`
*
* @param ctx -
*/
export declare const lteq: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x y -- x>=y )`
*
* @param ctx -
*/
export declare const gteq: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x -- x===0 )`
*
* @param ctx -
*/
export declare const iszero: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x -- x>0 )`
*
* @param ctx -
*/
export declare const ispos: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x -- x<0 )`
*
* @param ctx -
*/
export declare const isneg: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
/**
* Stack effect: `( x -- x==null )`
*
* @param ctx -
*/
export declare const isnull: (ctx: import("./api.js").StackContext) => import("./api.js").StackContext;
//# sourceMappingURL=logic.d.ts.map