Reduct  v1.0.4-3-gdaf0d70
A functional and immutable language.
Loading...
Searching...
No Matches
Stdlib

Detailed Description

Built-in libraries provide a set of pre-defined native functions for use in Reduct expressions.

See also
Native Functions

Enumerations

enum  reduct_stdlib_sets_t {
  REDUCT_STDLIB_ERROR = (1 << 0) , REDUCT_STDLIB_HIGHER_ORDER = (1 << 1) , REDUCT_STDLIB_SEQUENCES = (1 << 2) , REDUCT_STDLIB_STRING = (1 << 3) ,
  REDUCT_STDLIB_INTROSPECTION = (1 << 4) , REDUCT_STDLIB_TYPE_CASTING = (1 << 5) , REDUCT_STDLIB_SYSTEM = (1 << 6) , REDUCT_STDLIB_MATH = (1 << 7) ,
  REDUCT_STDLIB_ALL = 0xFFFF
}
 Built-in library sets. More...
 

Functions

REDUCT_API reduct_handle_t reduct_assert (struct reduct *reduct, reduct_handle_t *cond, reduct_handle_t *msg)
 
REDUCT_API reduct_handle_t reduct_throw (struct reduct *reduct, reduct_handle_t *msg)
 
REDUCT_API reduct_handle_t reduct_try (struct reduct *reduct, reduct_handle_t *callable, reduct_handle_t *catchFn)
 
REDUCT_API reduct_handle_t reduct_map (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_filter (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_reduce (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *initial, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_apply (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_any (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_all (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_sort (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_len (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_range (struct reduct *reduct, reduct_handle_t *start, reduct_handle_t *end, reduct_handle_t *step)
 
REDUCT_API reduct_handle_t reduct_concat (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_first (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_last (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_rest (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_init (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_nth (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *index, reduct_handle_t *defaultVal)
 
REDUCT_API reduct_handle_t reduct_assoc (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *index, reduct_handle_t *value, reduct_handle_t *fillVal)
 
REDUCT_API reduct_handle_t reduct_dissoc (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *index)
 
REDUCT_API reduct_handle_t reduct_update (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *index, reduct_handle_t *callable, reduct_handle_t *fillVal)
 
REDUCT_API reduct_handle_t reduct_index_of (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *target)
 
REDUCT_API reduct_handle_t reduct_reverse (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_slice (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *start, reduct_handle_t *end)
 
REDUCT_API reduct_handle_t reduct_flatten (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *depth)
 
REDUCT_API reduct_handle_t reduct_contains (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *target)
 
REDUCT_API reduct_handle_t reduct_replace (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *oldVal, reduct_handle_t *newVal)
 
REDUCT_API reduct_handle_t reduct_unique (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_chunk (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *size)
 
REDUCT_API reduct_handle_t reduct_find (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_get_in (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *path, reduct_handle_t *defaultVal)
 
REDUCT_API reduct_handle_t reduct_assoc_in (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *path, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_dissoc_in (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *path)
 
REDUCT_API reduct_handle_t reduct_update_in (struct reduct *reduct, reduct_handle_t *list, reduct_handle_t *path, reduct_handle_t *callable)
 
REDUCT_API reduct_handle_t reduct_keys (struct reduct *reduct, reduct_handle_t *list)
 
REDUCT_API reduct_handle_t reduct_values (struct reduct *reduct, reduct_handle_t *list)
 
REDUCT_API reduct_handle_t reduct_merge (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_explode (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_implode (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_repeat (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *count)
 
REDUCT_API reduct_handle_t reduct_starts_with (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *prefix)
 
REDUCT_API reduct_handle_t reduct_ends_with (struct reduct *reduct, reduct_handle_t *handle, reduct_handle_t *suffix)
 
REDUCT_API reduct_handle_t reduct_join (struct reduct *reduct, reduct_handle_t *listHandle, reduct_handle_t *sepHandle)
 
REDUCT_API reduct_handle_t reduct_split (struct reduct *reduct, reduct_handle_t *srcHandle, reduct_handle_t *sepHandle)
 
REDUCT_API reduct_handle_t reduct_upper (struct reduct *reduct, reduct_handle_t *srcHandle)
 
REDUCT_API reduct_handle_t reduct_lower (struct reduct *reduct, reduct_handle_t *srcHandle)
 
REDUCT_API reduct_handle_t reduct_trim (struct reduct *reduct, reduct_handle_t *srcHandle)
 
REDUCT_API reduct_handle_t reduct_is_atom (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_int (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_float (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_number (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_string (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_lambda (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_native (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_callable (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_list (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_empty (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_is_nil (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_get_int (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_get_float (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_get_string (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_run (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_load (struct reduct *reduct, reduct_handle_t *path)
 
REDUCT_API reduct_handle_t reduct_read_file (struct reduct *reduct, reduct_handle_t *path)
 
REDUCT_API reduct_handle_t reduct_write_file (struct reduct *reduct, reduct_handle_t *path, reduct_handle_t *content)
 
REDUCT_API reduct_handle_t reduct_read_char (struct reduct *reduct)
 
REDUCT_API reduct_handle_t reduct_read_line (struct reduct *reduct)
 
REDUCT_API reduct_handle_t reduct_print (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_println (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_ord (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_chr (struct reduct *reduct, reduct_handle_t *handle)
 
REDUCT_API reduct_handle_t reduct_format (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_now (struct reduct *reduct)
 
REDUCT_API reduct_handle_t reduct_uptime (struct reduct *reduct)
 
REDUCT_API reduct_handle_t reduct_env (struct reduct *reduct)
 
REDUCT_API reduct_handle_t reduct_args (struct reduct *reduct)
 
REDUCT_API reduct_handle_t reduct_min (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_max (struct reduct *reduct, reduct_size_t argc, reduct_handle_t *argv)
 
REDUCT_API reduct_handle_t reduct_clamp (struct reduct *reduct, reduct_handle_t *val, reduct_handle_t *minVal, reduct_handle_t *maxVal)
 
REDUCT_API reduct_handle_t reduct_abs (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_floor (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_ceil (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_round (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_pow (struct reduct *reduct, reduct_handle_t *base, reduct_handle_t *exp)
 
REDUCT_API reduct_handle_t reduct_exp (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_log (struct reduct *reduct, reduct_handle_t *val, reduct_handle_t *base)
 
REDUCT_API reduct_handle_t reduct_sqrt (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_sin (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_cos (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_tan (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_asin (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_acos (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_atan (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_atan2 (struct reduct *reduct, reduct_handle_t *y, reduct_handle_t *x)
 
REDUCT_API reduct_handle_t reduct_sinh (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_cosh (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_tanh (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_asinh (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_acosh (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_atanh (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API reduct_handle_t reduct_rand (struct reduct *reduct, reduct_handle_t *minVal, reduct_handle_t *maxVal)
 
REDUCT_API reduct_handle_t reduct_seed (struct reduct *reduct, reduct_handle_t *val)
 
REDUCT_API void reduct_stdlib_register (struct reduct *reduct, reduct_stdlib_sets_t sets)
 Register a set from the standard library to the Reduct instance.
 

Enumeration Type Documentation

◆ reduct_stdlib_sets_t

Built-in library sets.

Enumerator
REDUCT_STDLIB_ERROR 
REDUCT_STDLIB_HIGHER_ORDER 
REDUCT_STDLIB_SEQUENCES 
REDUCT_STDLIB_STRING 
REDUCT_STDLIB_INTROSPECTION 
REDUCT_STDLIB_TYPE_CASTING 
REDUCT_STDLIB_SYSTEM 
REDUCT_STDLIB_MATH 
REDUCT_STDLIB_ALL 

Definition at line 24 of file standard.h.

Function Documentation

◆ reduct_assert()

REDUCT_API reduct_handle_t reduct_assert ( struct reduct *  reduct,
reduct_handle_t cond,
reduct_handle_t msg 
)

◆ reduct_throw()

REDUCT_API reduct_handle_t reduct_throw ( struct reduct *  reduct,
reduct_handle_t msg 
)

◆ reduct_try()

REDUCT_API reduct_handle_t reduct_try ( struct reduct *  reduct,
reduct_handle_t callable,
reduct_handle_t catchFn 
)

◆ reduct_map()

REDUCT_API reduct_handle_t reduct_map ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t callable 
)

◆ reduct_filter()

REDUCT_API reduct_handle_t reduct_filter ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t callable 
)

◆ reduct_reduce()

REDUCT_API reduct_handle_t reduct_reduce ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t initial,
reduct_handle_t callable 
)

◆ reduct_apply()

REDUCT_API reduct_handle_t reduct_apply ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t callable 
)

◆ reduct_any()

REDUCT_API reduct_handle_t reduct_any ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t callable 
)

◆ reduct_all()

REDUCT_API reduct_handle_t reduct_all ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t callable 
)

◆ reduct_sort()

REDUCT_API reduct_handle_t reduct_sort ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t callable 
)

◆ reduct_len()

REDUCT_API reduct_handle_t reduct_len ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_range()

REDUCT_API reduct_handle_t reduct_range ( struct reduct *  reduct,
reduct_handle_t start,
reduct_handle_t end,
reduct_handle_t step 
)

Definition at line 442 of file standard_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reduct_concat()

REDUCT_API reduct_handle_t reduct_concat ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_first()

REDUCT_API reduct_handle_t reduct_first ( struct reduct *  reduct,
reduct_handle_t handle 
)

◆ reduct_last()

REDUCT_API reduct_handle_t reduct_last ( struct reduct *  reduct,
reduct_handle_t handle 
)

◆ reduct_rest()

REDUCT_API reduct_handle_t reduct_rest ( struct reduct *  reduct,
reduct_handle_t handle 
)

◆ reduct_init()

REDUCT_API reduct_handle_t reduct_init ( struct reduct *  reduct,
reduct_handle_t handle 
)

◆ reduct_nth()

REDUCT_API reduct_handle_t reduct_nth ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t index,
reduct_handle_t defaultVal 
)

◆ reduct_assoc()

REDUCT_API reduct_handle_t reduct_assoc ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t index,
reduct_handle_t value,
reduct_handle_t fillVal 
)

◆ reduct_dissoc()

REDUCT_API reduct_handle_t reduct_dissoc ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t index 
)

Definition at line 728 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_update()

REDUCT_API reduct_handle_t reduct_update ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t index,
reduct_handle_t callable,
reduct_handle_t fillVal 
)

◆ reduct_index_of()

REDUCT_API reduct_handle_t reduct_index_of ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t target 
)

◆ reduct_reverse()

REDUCT_API reduct_handle_t reduct_reverse ( struct reduct *  reduct,
reduct_handle_t handle 
)

◆ reduct_slice()

REDUCT_API reduct_handle_t reduct_slice ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t start,
reduct_handle_t end 
)

◆ reduct_flatten()

REDUCT_API reduct_handle_t reduct_flatten ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t depth 
)

Definition at line 921 of file standard_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reduct_contains()

REDUCT_API reduct_handle_t reduct_contains ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t target 
)

Definition at line 976 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_replace()

REDUCT_API reduct_handle_t reduct_replace ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t oldVal,
reduct_handle_t newVal 
)

Definition at line 983 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_unique()

REDUCT_API reduct_handle_t reduct_unique ( struct reduct *  reduct,
reduct_handle_t handle 
)

Definition at line 1075 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_chunk()

REDUCT_API reduct_handle_t reduct_chunk ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t size 
)

Definition at line 1112 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_find()

REDUCT_API reduct_handle_t reduct_find ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t callable 
)

Definition at line 1145 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_get_in()

REDUCT_API reduct_handle_t reduct_get_in ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t path,
reduct_handle_t defaultVal 
)

◆ reduct_assoc_in()

REDUCT_API reduct_handle_t reduct_assoc_in ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t path,
reduct_handle_t val 
)

◆ reduct_dissoc_in()

REDUCT_API reduct_handle_t reduct_dissoc_in ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t path 
)

◆ reduct_update_in()

REDUCT_API reduct_handle_t reduct_update_in ( struct reduct *  reduct,
reduct_handle_t list,
reduct_handle_t path,
reduct_handle_t callable 
)

◆ reduct_keys()

REDUCT_API reduct_handle_t reduct_keys ( struct reduct *  reduct,
reduct_handle_t list 
)

◆ reduct_values()

REDUCT_API reduct_handle_t reduct_values ( struct reduct *  reduct,
reduct_handle_t list 
)

◆ reduct_merge()

REDUCT_API reduct_handle_t reduct_merge ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_explode()

REDUCT_API reduct_handle_t reduct_explode ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_implode()

REDUCT_API reduct_handle_t reduct_implode ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_repeat()

REDUCT_API reduct_handle_t reduct_repeat ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t count 
)

◆ reduct_starts_with()

REDUCT_API reduct_handle_t reduct_starts_with ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t prefix 
)

◆ reduct_ends_with()

REDUCT_API reduct_handle_t reduct_ends_with ( struct reduct *  reduct,
reduct_handle_t handle,
reduct_handle_t suffix 
)

◆ reduct_join()

REDUCT_API reduct_handle_t reduct_join ( struct reduct *  reduct,
reduct_handle_t listHandle,
reduct_handle_t sepHandle 
)

◆ reduct_split()

REDUCT_API reduct_handle_t reduct_split ( struct reduct *  reduct,
reduct_handle_t srcHandle,
reduct_handle_t sepHandle 
)

◆ reduct_upper()

REDUCT_API reduct_handle_t reduct_upper ( struct reduct *  reduct,
reduct_handle_t srcHandle 
)

◆ reduct_lower()

REDUCT_API reduct_handle_t reduct_lower ( struct reduct *  reduct,
reduct_handle_t srcHandle 
)

◆ reduct_trim()

REDUCT_API reduct_handle_t reduct_trim ( struct reduct *  reduct,
reduct_handle_t srcHandle 
)

◆ reduct_is_atom()

REDUCT_API reduct_handle_t reduct_is_atom ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_int()

REDUCT_API reduct_handle_t reduct_is_int ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_float()

REDUCT_API reduct_handle_t reduct_is_float ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_number()

REDUCT_API reduct_handle_t reduct_is_number ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_string()

REDUCT_API reduct_handle_t reduct_is_string ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_lambda()

REDUCT_API reduct_handle_t reduct_is_lambda ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_native()

REDUCT_API reduct_handle_t reduct_is_native ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_callable()

REDUCT_API reduct_handle_t reduct_is_callable ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_list()

REDUCT_API reduct_handle_t reduct_is_list ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_empty()

REDUCT_API reduct_handle_t reduct_is_empty ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_is_nil()

REDUCT_API reduct_handle_t reduct_is_nil ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_get_int()

REDUCT_API reduct_handle_t reduct_get_int ( struct reduct *  reduct,
reduct_handle_t handle 
)
Here is the caller graph for this function:

◆ reduct_get_float()

REDUCT_API reduct_handle_t reduct_get_float ( struct reduct *  reduct,
reduct_handle_t handle 
)
Here is the caller graph for this function:

◆ reduct_get_string()

REDUCT_API reduct_handle_t reduct_get_string ( struct reduct *  reduct,
reduct_handle_t handle 
)

◆ reduct_run()

REDUCT_API reduct_handle_t reduct_run ( struct reduct *  reduct,
reduct_handle_t handle 
)

Definition at line 1882 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_load()

REDUCT_API reduct_handle_t reduct_load ( struct reduct *  reduct,
reduct_handle_t path 
)

Definition at line 1903 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_read_file()

REDUCT_API reduct_handle_t reduct_read_file ( struct reduct *  reduct,
reduct_handle_t path 
)

Definition at line 1914 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_write_file()

REDUCT_API reduct_handle_t reduct_write_file ( struct reduct *  reduct,
reduct_handle_t path,
reduct_handle_t content 
)

Definition at line 1951 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_read_char()

REDUCT_API reduct_handle_t reduct_read_char ( struct reduct *  reduct)

Definition at line 1978 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_read_line()

REDUCT_API reduct_handle_t reduct_read_line ( struct reduct *  reduct)

Definition at line 1992 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_print()

REDUCT_API reduct_handle_t reduct_print ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_println()

REDUCT_API reduct_handle_t reduct_println ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_ord()

REDUCT_API reduct_handle_t reduct_ord ( struct reduct *  reduct,
reduct_handle_t handle 
)

Definition at line 2076 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_chr()

REDUCT_API reduct_handle_t reduct_chr ( struct reduct *  reduct,
reduct_handle_t handle 
)

Definition at line 2093 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_format()

REDUCT_API reduct_handle_t reduct_format ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_now()

REDUCT_API reduct_handle_t reduct_now ( struct reduct *  reduct)

◆ reduct_uptime()

REDUCT_API reduct_handle_t reduct_uptime ( struct reduct *  reduct)

◆ reduct_env()

REDUCT_API reduct_handle_t reduct_env ( struct reduct *  reduct)

Definition at line 2248 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_args()

REDUCT_API reduct_handle_t reduct_args ( struct reduct *  reduct)

Definition at line 2281 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_min()

REDUCT_API reduct_handle_t reduct_min ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_max()

REDUCT_API reduct_handle_t reduct_max ( struct reduct *  reduct,
reduct_size_t  argc,
reduct_handle_t argv 
)

◆ reduct_clamp()

REDUCT_API reduct_handle_t reduct_clamp ( struct reduct *  reduct,
reduct_handle_t val,
reduct_handle_t minVal,
reduct_handle_t maxVal 
)

◆ reduct_abs()

REDUCT_API reduct_handle_t reduct_abs ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_floor()

REDUCT_API reduct_handle_t reduct_floor ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_ceil()

REDUCT_API reduct_handle_t reduct_ceil ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_round()

REDUCT_API reduct_handle_t reduct_round ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_pow()

REDUCT_API reduct_handle_t reduct_pow ( struct reduct *  reduct,
reduct_handle_t base,
reduct_handle_t exp 
)

◆ reduct_exp()

REDUCT_API reduct_handle_t reduct_exp ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_log()

REDUCT_API reduct_handle_t reduct_log ( struct reduct *  reduct,
reduct_handle_t val,
reduct_handle_t base 
)

Definition at line 2413 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_sqrt()

REDUCT_API reduct_handle_t reduct_sqrt ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_sin()

REDUCT_API reduct_handle_t reduct_sin ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_cos()

REDUCT_API reduct_handle_t reduct_cos ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_tan()

REDUCT_API reduct_handle_t reduct_tan ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_asin()

REDUCT_API reduct_handle_t reduct_asin ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_acos()

REDUCT_API reduct_handle_t reduct_acos ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_atan()

REDUCT_API reduct_handle_t reduct_atan ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_atan2()

REDUCT_API reduct_handle_t reduct_atan2 ( struct reduct *  reduct,
reduct_handle_t y,
reduct_handle_t x 
)

Definition at line 2464 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_sinh()

REDUCT_API reduct_handle_t reduct_sinh ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_cosh()

REDUCT_API reduct_handle_t reduct_cosh ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_tanh()

REDUCT_API reduct_handle_t reduct_tanh ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_asinh()

REDUCT_API reduct_handle_t reduct_asinh ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_acosh()

REDUCT_API reduct_handle_t reduct_acosh ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_atanh()

REDUCT_API reduct_handle_t reduct_atanh ( struct reduct *  reduct,
reduct_handle_t val 
)

◆ reduct_rand()

REDUCT_API reduct_handle_t reduct_rand ( struct reduct *  reduct,
reduct_handle_t minVal,
reduct_handle_t maxVal 
)

Definition at line 2474 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_seed()

REDUCT_API reduct_handle_t reduct_seed ( struct reduct *  reduct,
reduct_handle_t val 
)

Definition at line 2492 of file standard_impl.h.

Here is the call graph for this function:

◆ reduct_stdlib_register()

REDUCT_API void reduct_stdlib_register ( struct reduct *  reduct,
reduct_stdlib_sets_t  sets 
)

Register a set from the standard library to the Reduct instance.

Parameters
reductThe Reduct structure.
setsThe sets to register.