Guest User

Untitled

a guest
May 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.39 KB | None | 0 0
  1. (define make-arr
  2.   (letrec ((helper (lambda(x y n init arr)
  3.                      (if (and (= x 0) (= y 0)) (append  arr (list(list x y init)))
  4.                          (if (= x 0) (helper n (- y 1) n init (append  arr (list(list x y init))))
  5.                              (helper (- x 1) y n init (append  arr (list(list x y init)))))))))
  6.     (lambda (n init)
  7.       (helper n n n init empty))))
Add Comment
Please, Sign In to add comment