summaryrefslogtreecommitdiff
path: root/docs/embedding.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/embedding.rst')
-rw-r--r--docs/embedding.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/embedding.rst b/docs/embedding.rst
index f07b0f6..d179baf 100644
--- a/docs/embedding.rst
+++ b/docs/embedding.rst
@@ -78,8 +78,8 @@ will automatically determine the name to bind to:
session.bind_fn(example)
print(*session.run('(example)')) # prints "5"
-Finally, to bind a function returning a tuple of results, call
-``bind_builtin``. This will automatically determine the name to bind to:
+To bind a function returning a tuple of results, call ``bind_builtin``. This
+will automatically determine the name to bind to:
.. code-block:: python
@@ -128,6 +128,11 @@ The symbol must be bound to an instance of the ``Registry`` class from the
def two_values():
return 1, "Two"
+ An.eval('''
+ (begin
+ (define (three-values) (values 1 2 3)))
+ ''')
+
# @An.macro_bind, @An.macro_void, @An.macro_fn, and @An.macro_builtin follow
# the same pattern.