Created
February 10, 2010 11:50
-
-
Save valvallow/300236 to your computer and use it in GitHub Desktop.
9 x 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use srfi-1) | |
(define 9x9 | |
(lambda (row cnt inc mul) | |
(append | |
(cons | |
(map (lambda (n) | |
(cons (cons mul n)(cons (* n mul) '()))) | |
(iota cnt 1 inc)) | |
(if (zero? row) | |
'() | |
(9x9 (- row 1) cnt inc (+ mul 1))))))) | |
(9x9 9 9 1 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment