Scheme. Tail recursive ?
- by n00b
Hi guys, any tail-recursive version for the below mentioned pseudocode ? Thanks !
(define (min list)
(cond
((null? list '())
((null? (cdr list)) (car list))
(#t (let ((a (car list))
(b (min (cdr list)))
)
(if (< b a) b a)
)
)
)
)