Skip to content

Instantly share code, notes, and snippets.

@jrslepak
Created July 2, 2014 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrslepak/e349ade7de6f4ef1868d to your computer and use it in GitHub Desktop.
Save jrslepak/e349ade7de6f4ef1868d to your computer and use it in GitHub Desktop.
#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