Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clojure-rs/ClojureRS
/ functions
Functions
479 in github.com/clojure-rs/ClojureRS
⨍
Functions
479
◇
Types & classes
94
↓ 236 callers
Function
new
()
src/namespace.rs:446
↓ 113 callers
Method
unwrap
Realistically, the fact that you unwrap to get an upcast is just an implementation detail, so @TODO change to upcast Panics if Value not instance of P
src/protocol.rs:50
↓ 111 callers
Method
len
(&self)
src/persistent_list.rs:65
↓ 100 callers
Method
to_rc_value
(&self)
src/value.rs:582
↓ 71 callers
Method
get
(&self, key: &Rc<Value>)
src/protocols/ipersistent_map.rs:9
↓ 49 callers
Method
get
(&self, sym: &Symbol)
src/namespace.rs:203
↓ 46 callers
Method
insert
Insert into the environment around you; the local bindings, or the current namespace, if this is top level For instance, ```clojure (def a 1) ;;
src/environment.rs:206
↓ 37 callers
Method
insert
(&self, sym: &Symbol, val: Rc<Value>)
src/namespace.rs:169
↓ 35 callers
Function
wrong_arg_count
(expected: usize, got: usize)
src/error_message.rs:13
↓ 24 callers
Function
type_mismatch
(expected: TypeTag, got: &Value)
src/error_message.rs:6
↓ 23 callers
Method
insert_into_namespace
Insert a binding (sym = val) *into* namespace (namespace) If namespace doesn't exist, create it
src/namespace.rs:275
↓ 21 callers
Method
insert_into_namespace
(&self, namespace_sym: &Symbol, sym: Symbol, val: Rc<Value>)
src/environment.rs:47
↓ 20 callers
Method
to_value
(&self)
src/value.rs:588
↓ 19 callers
Method
iter
(&self)
src/iterable.rs:49
↓ 14 callers
Function
try_read
(input: &str)
src/reader.rs:631
↓ 14 callers
Method
unqualified
(&self)
src/symbol.rs:60
↓ 13 callers
Method
invoke
(&self, args: Vec<Rc<Value>>)
src/lambda.rs:21
↓ 11 callers
Method
eval_to_rc
(&self, environment: Rc<Environment>)
src/value.rs:705
↓ 10 callers
Method
get_main_environment
(&self)
src/environment.rs:216
↓ 8 callers
Method
into_list
(self)
src/persistent_list.rs:90
↓ 6 callers
Method
create_namespace_with_refers
(&self, sym: &Symbol, refers: Refers)
src/namespace.rs:233
↓ 6 callers
Function
from_sym
()
src/namespace.rs:711
↓ 6 callers
Method
get
@TODO refactor to use ^ @TODO figure out convention for 'ns' vs 'namespace' Get closest value "around" us; try our local environment, then try our ma
src/environment.rs:252
↓ 6 callers
Method
has_ns
(&self)
src/symbol.rs:66
↓ 6 callers
Method
next
(&mut self)
src/iterable.rs:29
↓ 5 callers
Function
cons
For building a 'top level' list, that is the first to reference (and own) all of its values
src/persistent_list.rs:61
↓ 5 callers
Method
get_current_namespace
(&self)
src/environment.rs:64
↓ 5 callers
Function
read
This is the high level read function that Clojure RS wraps
src/reader.rs:664
↓ 4 callers
Method
add_referred_syms
(&self, syms: HashMap<Symbol, Vec<Symbol>>)
src/namespace.rs:105
↓ 4 callers
Method
bind_root
(&self, root: Rc<Value>)
src/var.rs:64
↓ 4 callers
Function
custom
For one off errors
src/error_message.rs:82
↓ 4 callers
Method
eval
@TODO reconsider eval's signature; since Value wraps all evaluables, it might make more sense to frame eval as "environment.eval(value)", and then l
src/repl.rs:23
↓ 4 callers
Method
iter
(&self)
src/persistent_list.rs:148
↓ 4 callers
Method
meta
@TODO use IPersistentMap instead perhaps
src/symbol.rs:73
↓ 4 callers
Function
to_value_parser
Currently used to create 'try_readers', which are readers (or reader functions, at least) that are basically composable InputType -> IResult<InputType
src/reader.rs:381
↓ 4 callers
Method
try_eval_file
Will possibly just add this to our environment, or turn this into a parallel of clojure.lang.RT Reads the code in a file sequentially and evaluates t
src/repl.rs:60
↓ 4 callers
Function
wrong_varg_count
(expected: &[usize], got: usize)
src/error_message.rs:20
↓ 3 callers
Method
assoc
(&self, key: Rc<Value>, val: Rc<Value>)
src/persistent_list_map.rs:120
↓ 3 callers
Method
change_or_create_namespace
(&self, symbol: &Symbol)
src/environment.rs:32
↓ 3 callers
Function
cons_rc
(head: Rc<Value>, tail: Rc<PersistentList>)
src/persistent_list.rs:52
↓ 3 callers
Function
generic_err
(error: Box<dyn Error>)
src/error_message.rs:45
↓ 3 callers
Function
index_out_of_bounds
(ind: usize, count: usize)
src/error_message.rs:34
↓ 3 callers
Method
into_vector
(self)
src/persistent_vector.rs:66
↓ 3 callers
Method
nth
(&self, ind: usize)
src/persistent_list.rs:140
↓ 3 callers
Method
to_value
(&self)
src/rust_core/lt.rs:11
↓ 3 callers
Method
to_value
(&self)
src/rust_core/lte.rs:11
↓ 3 callers
Method
to_value
(&self)
src/rust_core/gte.rs:11
↓ 3 callers
Method
to_value
(&self)
src/rust_core/nth.rs:16
↓ 3 callers
Method
to_value
(&self)
src/rust_core/rem.rs:12
↓ 3 callers
Method
to_value
(&self)
src/rust_core/gt.rs:11
↓ 3 callers
Method
to_value
(&self)
src/clojure_string/includes_qmark_.rs:12
↓ 3 callers
Method
to_value
(&self)
src/clojure_string/ends_with_qmark_.rs:12
↓ 3 callers
Method
to_value
(&self)
src/clojure_string/starts_with_qmark_.rs:12
↓ 3 callers
Method
with_meta
(&self, meta: PersistentListMap)
src/symbol.rs:76
↓ 2 callers
Method
apply_to_persistent_list
This function is inherently long, as it is dispatching on all valid function-like (IFn) Value types We could further separate each dispatch case into
src/value.rs:258
↓ 2 callers
Method
change_namespace
@TODO is this wrapper really necessary, or is it just inviting an invariant break? Note; do not use. Does not enforce the invariant that namespace exi
src/environment.rs:29
↓ 2 callers
Method
contains_key
(&self, sym: &Symbol)
src/namespace.rs:166
↓ 2 callers
Method
create_namespace
(&self, symbol: &Symbol)
src/environment.rs:68
↓ 2 callers
Method
create_namespace
Adds a new namespace to internal HashMap (but does not* return a Namespace or reference to one)
src/namespace.rs:229
↓ 2 callers
Method
eval
Evaluates a value and returns a new ClojureRS Value altogether, by cloning what eval_to_rc points to
src/value.rs:699
↓ 2 callers
Method
get_from_namespace
(&self, namespace: &Symbol, sym: &Symbol)
src/environment.rs:61
↓ 2 callers
Method
get_var_from_namespace
(&self, namespace: &Symbol, sym: &Symbol)
src/environment.rs:58
↓ 2 callers
Method
has_namespace
Insert a new namespace of name (sym)
src/namespace.rs:262
↓ 2 callers
Method
set_meta
(&self, meta: PersistentListMap)
src/var.rs:68
↓ 2 callers
Method
to_string_explicit
Likely temporary I cannot remember for the life of me whether or not there's a function like this normally and what its called Regardless, when we hav
src/value.rs:202
↓ 2 callers
Method
to_value
(&self)
src/rust_core/with_meta.rs:27
↓ 2 callers
Method
to_value
(&self)
src/rust_core/_subtract_.rs:12
↓ 2 callers
Method
to_value
(&self)
src/rust_core/do_macro.rs:13
↓ 2 callers
Method
to_value
(&self)
src/rust_core/_divide_.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/upper_case.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/trim_newline.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/trim.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/lower_case.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/split.rs:14
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/trimr.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/triml.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/reverse.rs:12
↓ 2 callers
Method
to_value
(&self)
src/clojure_string/blank_qmark_.rs:12
↓ 2 callers
Method
try_get
(&self, sym: &Symbol)
src/namespace.rs:196
↓ 2 callers
Function
zero_arg_count
(got: usize)
src/error_message.rs:27
↓ 1 callers
Method
add_referred_namespace
(&self, namespace_sym: &Symbol, referred_namespace_sym: &Symbol)
src/environment.rs:43
↓ 1 callers
Method
add_referred_namespace_to_curr_namespace
(&self, referred_namespace_sym: &Symbol)
src/environment.rs:132
↓ 1 callers
Method
add_referred_namespaces
(&self, namespaces: Vec<Symbol>)
src/namespace.rs:112
↓ 1 callers
Method
add_referred_syms
(&self, namespace_sym: &Symbol, syms: HashMap<Symbol, Vec<Symbol>>)
src/environment.rs:40
↓ 1 callers
Method
assoc
(&self, key: Rc<Value>, value: Rc<Value>)
src/protocols/ipersistent_map.rs:15
↓ 1 callers
Method
contains_key
(&self, key: &Rc<Value>)
src/persistent_list_map.rs:123
↓ 1 callers
Method
deref
(&self)
src/var.rs:60
↓ 1 callers
Function
first_char
Returns the first character of a string slice. # Panics This function will panic if `input` is an empty string slice.
src/reader.rs:61
↓ 1 callers
Function
from_sym_with_refers
()
src/namespace.rs:719
↓ 1 callers
Function
get
()
src/namespace.rs:765
↓ 1 callers
Method
get_var
(&self, sym: &Symbol)
src/environment.rs:222
↓ 1 callers
Method
get_var
(&self, sym: &Symbol)
src/namespace.rs:184
↓ 1 callers
Method
has_namespace
(&self, namespace: &Symbol)
src/environment.rs:55
↓ 1 callers
Function
identifier_parser
Parses valid Clojure identifiers Example Successes: ab, cat, -12+3, |blah|, <well>, / (edge case) Example Failures: 'a, 12b, ,cat , /ab
src/reader.rs:249
↓ 1 callers
Function
index_cannot_be_negative
(ind: usize)
src/error_message.rs:41
↓ 1 callers
Method
insert_into_current_namespace
(&self, sym: Symbol, val: Rc<Value>)
src/environment.rs:51
↓ 1 callers
Method
into_list_map
(self)
src/persistent_list_map.rs:177
↓ 1 callers
Method
is_even
(&self)
src/util.rs:8
↓ 1 callers
Function
is_non_numeric_identifier_char
Returns true if a character is an acceptable (non numeric) identifier char An identifier is either a non numeric identifier char, followed by any num
src/reader.rs:133
↓ 1 callers
Method
is_odd
(&self)
src/util.rs:17
next →
1–100 of 479, ranked by callers