copy-var
macro
sci.core/copy-var
(copy-var [sym ns] [sym ns opts])Copies contents from var `sym` to a new sci var. The value `ns` is an
object created with `sci.core/create-ns`.
Options:
- `:name`: The name of the copied var. Defaults to the original var name.
- `:copy-meta-from`: A symbol resolving to a var whose metadata (`:doc`,
`:arglists`, `:file`, `:line`, `:column`) is used instead of `sym`'s.
Useful for wrapper vars that delegate to another var.
Examples
No examples yet. Be the first to add one!