|
From: | Peter Danenberg |
Subject: | Re: [Chicken-users] ANN: lazy-seq, a port of Clojure's lazy sequence API |
Date: | Sun, 3 Jun 2012 04:12:19 -0500 |
User-agent: | Mutt/1.5.21+52 (c26dbc7021f4) (2011-07-01) |
Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion: > You mis-matched your parens - it should be: > > (define (factorial n) > (ref (scan * 1 (from 1)) n)) > ^^^ > > Presumably you compiled to get a segfault - the interpreter gives an > arity error. Interesting; I took the example straight off of the wiki.[1] It gives a segfault for me in csi, even with the adjusted placement of n. Footnotes: [1] http://wiki.call-cc.org/eggref/4/srfi-41#examples
[Prev in Thread] | Current Thread | [Next in Thread] |