MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / cons

Function cons

18-with-match/lispy/original/lispy.py:141–141  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

139
140def is_pair(x): return x != [] and isa(x, list)
141def cons(x, y): return [x]+y
142
143def callcc(proc):
144 "Call proc with current continuation; escape only"

Callers 1

letFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected