MCPcopy
hub / github.com/fluentpython/example-code-2e / Procedure

Class Procedure

18-with-match/lispy/original/lispy.py:22–27  ·  view source on GitHub ↗

A user-defined Scheme procedure.

Source from the content-addressed store, hash-verified

20"quasiquote unquote unquote-splicing".split())
21
22class Procedure:
23 "A user-defined Scheme procedure."
24 def __init__(self, parms, exp, env):
25 self.parms, self.exp, self.env = parms, exp, env
26 def __call__(self, *args):
27 return eval(self.exp, Env(self.parms, args, self.env))
28
29################ parse, read, and user interaction
30

Callers 1

evalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected