Hi Tassilo, On Sat, Sep 17, 2011 at 8:13 PM, Tassilo Horn <tass...@member.fsf.org>wrote:
> Ambrose Bonnaire-Sergeant <abonnaireserge...@gmail.com> writes: > > Hi Ambrose, > > > For those with a bit of free time to experiment at a REPL this weekend. > > > > https://github.com/frenchy64/Logic-Starter/wiki/Arithmetic > > Oh, I didn't know that one times three is four! :-) > Are you referring to this example? logic-introduction.numbers=> (run 1 [q] (times one three q))((((0)))) It may appear to return 4, but `run` returns a list of the values of `q` for each run. Here we request 1 run via `(run 1 [q] ..)` so a list of length 1 is returned: ( (((0))) ) ie. (3) Please share if you're referring to something else. Thanks, Ambrose -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en