When I put the below function into leon repl, I get
java.lang.IllegalArgumentException: Wrong number of args (0) passed to: PersistentVector (NO_SOURCE_FILE:0)
Another answer suggested putting the first call to vector inside of an anonymous function with #, but that then throws two java.lang.Exception: Unmatched delimiter: ) I’d like to return a nested vector, of the form [ [maxLat, maxLong ] [minLat, minLong ] ] How can this be done?
(defn bounding-box [lat lng dist] (
(vector
(vector (+ lat (to-degs (/ dist (p-radius dist)))) (+ lng (long-dist lat dist))) ;maxLat, maxLong
(vector (- lat (to-degs (/ dist (p-radius dist)))) (- lng (long-dist lat dist))) ;minLat, minLong
)
))
Format your code more carefully!
You just need delete bracket after function args
[lat lng dist] (and the last one)