From 93819cbb6c6b2093d6c2ced0ef7ff94fa2930df6 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 17 Jun 2024 17:16:07 -0400 Subject: [PATCH] xo-pyjit: README: bring example up-to-date --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e9f08673..342b3308 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,9 @@ build an AST from within python ``` >>> x=make_var('x') # "x" a variable (context not yet known) >>> f1=make_sin_pm() # "sin()" ->>> c1=make_apply(f1,x) # "sin(x)" +>>> c1=make_apply(f1,[x]) # "sin(x)" >>> f2=make_cos_pm() # "cos()" ->>> c2=make_apply(f2,c1) # "cos(sin(x))" +>>> c2=make_apply(f2,[c1]) # "cos(sin(x))" >>> lm=make_lambda('foo', ['x'], c2) # "def foo(x): cos(sin(x))" >>> lm :argv "[ :argv \"[]\">]">> @@ -97,7 +97,7 @@ JITDylib "
" (ES: 0x0000000000446ee0, State = Open) Link order: [ ("
", MatchAllSymbols) ] Symbol table: "foo": [Callable] Never-Searched (Materializer 0x646fe0, xojit) ->>> fn=mp.lookup_dbl_dbl_fn('foo') +>>> fn=mp.lookup_dbl2dbl_fn('foo') >>> mp.dump_execution_session() JITDylib "
" (ES: 0x0000000000446ee0, State = Open)