mes: Add drop, drop-right.

* module/srfi/srfi-1.mes (drop, drop-right): New function.
This commit is contained in:
Jan Nieuwenhuizen 2018-05-26 20:47:33 +02:00
parent 4ee1c9595e
commit 2748992551
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -131,4 +131,10 @@
(loop (cdr lst))
(cons (car lst) (loop (cdr lst))))))))
(define (drop lst n)
(list-tail lst n))
(define (drop-right lst n)
(list-head lst (- (length lst) n)))
(include-from-path "srfi/srfi-1.scm")