Created
July 2, 2014 20:13
-
-
Save jrslepak/e349ade7de6f4ef1868d to your computer and use it in GitHub Desktop.
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
#lang rackmora | |
(def count10 (R_iota [10])) | |
(R_iota [10]) | |
(fn ((top 0)) | |
(unbox counting count10 1)) | |
(def sum | |
(fn ((top 0)) | |
(unbox counting (R_iota [top]) (R_foldr + 0 counting)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment