Skip to content

Instantly share code, notes, and snippets.

mobius-eng

Block or report user

Report or block mobius-eng

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mobius-eng
mobius-eng / Plot_Examples.md
Created Jan 22, 2017 — forked from gizmaa/Plot_Examples.md
Various Julia plotting examples using PyPlot
View Plot_Examples.md
View env.scm
(define obj (make-top-level-environment))
(environment-define obj 'foo (lambda (x) (+ x bar)))
(environment-define obj 'bar 10)
((environment-lookup obj 'foo) 1)
; Unbound variable: bar
;; This works:
(define obj (extend-top-level-environment #f))
(eval '(define (foo x) (+ x bar)) obj)
(environment-define obj 'bar 10)
((environment-lookup obj 'foo) 1)
You can’t perform that action at this time.