But is there a way to return a value which is not the result of the last operation in a function
.e.g.
Code: Select all
(define (foo)
  (somefunc1...) ; Want to return the result of this function
  (somefunc2...))
Code: Select all
(define (foo)
  (somefunc1...) ; Want to return the result of this function
  (somefunc2...))
Code: Select all
(define (prog1 X) X)Code: Select all
((fn (X) X) term1 term2 term3 ...)Code: Select all
((list term1 term2 term3 ...) 0)Code: Select all
(define (return x) x)
define (foo ..) (
	(setq x (func1...)
	(func2 ....)
	(return x))
Code: Select all
(define (foo ..) 
    (return (func1...) 
	        (func2 ....)
                ...))