Jeremy Siek 4 lat temu
rodzic
commit
c44282969d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      book.tex

+ 2 - 2
book.tex

@@ -8553,10 +8553,10 @@ function pointer from the closure and then calls the function, passing
 in the closure as the first argument. We bind $e'$ to a temporary
 variable to avoid code duplication.
 \begin{lstlisting}
-(Apply |$e$| |\itm{es}| ...)
+(Apply |$e$| |\itm{es}|)
 |$\Rightarrow$|
 (Let |\itm{tmp}| |$e'$|
-  (Apply (Prim 'vector-ref (list (Var |\itm{tmp}|) (Int 0))) |\itm{tmp}| |\itm{es'}|))
+  (Apply (Prim 'vector-ref (list (Var |\itm{tmp}|) (Int 0))) (cons |\itm{tmp}| |\itm{es'}|)))
 \end{lstlisting}
 
 There is also the question of what to do with references top-level