Artifact 5a8dd29c9e589e8ece6d9f36884bb172196abc38:
- File srfi/tests/rec-factorial.sps — part of check-in [80c8c83034] at 2016-07-07 18:11:39 on branch trunk — initial import (user: ovenpasta@pizzahack.eu size: 434)
;; Copyright (c) 2009 Derick Eddington. All rights reserved. Licensed under an
;; MIT-style license. My license is in the file named LICENSE from the original
;; collection this file is distributed with. If this file is redistributed with
;; some other collection, my license must also be included.
#!r6rs
(import (rnrs) (surfage s31 rec))
(display
((rec (F N)
(if (zero? N) 1
(* N (F (- N 1)))))
10))
(newline)