Created
September 1, 2013 20:34
-
-
Save kristianlm/6407121 to your computer and use it in GitHub Desktop.
testing chicken-mongo's bson
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 bson mongo) | |
(define (mak n) | |
(if (> n 0) | |
`((int . 1) | |
(double . 1.5) | |
(false . #f) | |
(nested ,@(mak (sub1 n)))) | |
"the end")) | |
(let loop ((n 0) (obj (mak 100))) | |
(print n " ... " obj) | |
(if (= 0 (modulo n 1000)) | |
(fprintf (current-error-port) "~a\n" n)) | |
(loop (add1 n) (bson->obj (bson obj)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment