Skip to content

Commit 8ac1bcd

Browse files
committed
fix foldl1_let
1 parent 62f3c58 commit 8ac1bcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/test_tail_call_opt.ils

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ The result of this call is used as init and applied recursively to the tail of L
3636
(let ( ( tail_call_opt (status optimizeTailCall) )
3737
res )
3838
(sstatus optimizeTailCall t)
39-
(rec function (car l) (cdr l))
39+
(setq res (rec function (car l) (cdr l)))
4040
(sstatus optimizeTailCall tail_call_opt)
41-
))
41+
res))
4242

4343
));scheme closure
4444

0 commit comments

Comments
 (0)