Type checking


Functions

muse_cell fn_int_p (muse_env *env, void *context, muse_cell args)
 (int? x).
muse_cell fn_float_p (muse_env *env, void *context, muse_cell args)
 (float? x).
muse_cell fn_number_p (muse_env *env, void *context, muse_cell args)
 (number? x).
muse_cell fn_cons_p (muse_env *env, void *context, muse_cell args)
 (cons? x).
muse_cell fn_fn_p (muse_env *env, void *context, muse_cell args)
 (fn? x).
muse_cell fn_symbol_p (muse_env *env, void *context, muse_cell args)
 (symbol? x).
muse_cell fn_string_p (muse_env *env, void *context, muse_cell args)
 (string? x).

Function Documentation

muse_cell fn_int_p ( muse_env env,
void *  context,
muse_cell  args 
)

(int? x).

Evaluates to x if x is an integer cell and to () if its not.

muse_cell fn_float_p ( muse_env env,
void *  context,
muse_cell  args 
)

(float? x).

Evaluates to x if x is a float cell and to () if it is not.

muse_cell fn_number_p ( muse_env env,
void *  context,
muse_cell  args 
)

(number? x).

Evaluates to x if x is either an integer or a float cell. Otherwise evaluates to ().

muse_cell fn_cons_p ( muse_env env,
void *  context,
muse_cell  args 
)

(cons? x).

Evaluates to x if x is a cons cell - i.e. a portion of a list or a pair created by cons. If not, it evaluates to ().

See also:
muse_cons

fn_cons

muse_cell fn_fn_p ( muse_env env,
void *  context,
muse_cell  args 
)

(fn? x).

Evaluates to x if x is a lambda function or a c-native function. Evaluates to () if it is not.

See also:
syntax_lambda

muse_mk_nativefn()

muse_cell fn_symbol_p ( muse_env env,
void *  context,
muse_cell  args 
)

(symbol? x).

Evaluates to x if x is a symbol (named or anonymous) and evaluates to () if it isn't.

muse_cell fn_string_p ( muse_env env,
void *  context,
muse_cell  args 
)

(string? x).

Evaluates to x if x is a text cell and to () if it isn't.


Generated on Mon Sep 25 23:12:50 2006 for muSE by  doxygen 1.4.7