(defvar thevar)

(defun f2 (func thevar) 
    (funcall func thevar)
)

(defun sample (thevar)
    (f2 #'(lambda (x) (+ x thevar)) 1000)
)
