Guest User

Untitled

a guest
Nov 1st, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; this works fine and prints out
  2. ;; (0 0 1 3 6 10 15 21 28 36 45)
  3. ;; as it should
  4. (def v (range 10))
  5. (def w (lazy-cat [0] (map + v w)))
  6. (println w)
  7.  
  8. ;; this one fails
  9. ;; "Unable to resolve symbol: w1 in this context"
  10. (let [v1 (range 10)
  11.       w1 (lazy-cat [0] (map + v1 w1))]
  12.   (println w1))
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment