mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Temporary test file
This commit is contained in:
parent
94fac5c512
commit
2662a15622
1 changed files with 11 additions and 0 deletions
11
array1-test.scm
Normal file
11
array1-test.scm
Normal file
|
@ -0,0 +1,11 @@
|
|||
;;; ARRAY1 -- One of the Kernighan and Van Wyk benchmarks.
|
||||
|
||||
(import (scheme base) (scheme read) (scheme write) (scheme time))
|
||||
|
||||
(define (create-x n)
|
||||
(define result (make-vector n))
|
||||
(do ((i 0 (+ i 1)))
|
||||
((>= i n) result) ;; TODO: check generated code, can this >= be inlined???
|
||||
(vector-set! result i i)))
|
||||
|
||||
(write (create-x 10))
|
Loading…
Add table
Reference in a new issue