Merge branch 'master' of github.com:superboum/schemelib
This commit is contained in:
commit
6daa1f4d49
1 changed files with 12 additions and 1 deletions
|
@ -10,7 +10,18 @@
|
|||
((> b e) '())
|
||||
(#t (cons b (rangeinc (+ 1 b) e)))))
|
||||
|
||||
(define (less-than l n) (cond ((null? l) #t) ((<= n 0) #f) (#t (less-than (cdr l) (- n 1)))))
|
||||
(define (less-than l n)
|
||||
(cond
|
||||
((null? l) #t)
|
||||
((<= n 0) #f)
|
||||
(#t (less-than (cdr l) (- n 1)))))
|
||||
|
||||
(define (beginning l n)
|
||||
(cond
|
||||
((null? l) '())
|
||||
((<= n 0) '())
|
||||
(#t (cons (car l) (beginning (cdr l) (- n 1))))))
|
||||
|
||||
(define (unit v) v)
|
||||
(define (aget key alist) (cdr (assoc key alist)))
|
||||
(define (aset key val alist)
|
||||
|
|
Loading…
Reference in a new issue