Resolve resolve
¶
Resolves a symbol to its bound value.
;; Resolve a variable
↪ (set x 10)
↪ (resolve 'x)
10
;; Resolve a function
↪ (resolve '+)
<function:+>
;; Resolve an undefined symbol
↪ (resolve 'undefined)
null
Warning
- Symbol must be quoted
- Returns bound value or null if unbound
- Works for variables and functions