add nth
This commit is contained in:
parent
86c60fb402
commit
4a4d706798
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
(define (nth li pos)
|
||||
(cond
|
||||
((null? li) #f)
|
||||
((= pos 0) (car li))
|
||||
(#t (nth (cdr li) (- pos 1)))))
|
||||
|
||||
|
||||
(define (rangeinc b e)
|
||||
(cond
|
||||
((> b e) '())
|
||||
|
|
Loading…
Reference in a new issue