Method: Lisp::PrimEnvironment.environment_bound_names_impl

Defined in:
lib/rubylisp/prim_environment.rb

.environment_bound_names_impl(args, env) ⇒ Object


40
41
42
43
44
# File 'lib/rubylisp/prim_environment.rb', line 40

def self.environment_bound_names_impl(args, env)
  return Lisp::Debug.process_error("environment-bound-names requires an environment for it's argument, received: #{args.car}", env) unless args.car.environment?
  e = args.car.value
  Lisp::ConsCell.array_to_list(e.bound_names)
end