Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (fn r3verse
  2. ([coll](r3verse coll []))
  3. ([coll result]
  4.   ((if (empty? coll)
  5.      result
  6.      (recur (drop-last coll) (result(last coll)))))))
  7.  
  8.  
  9. ;java.lang.UnsupportedOperationException: Can only recur from tail position, compiling:(NO_SOURCE_PATH:0)
  10. ;isn't this tail position?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement