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
1 changed files with 6 additions and 0 deletions

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")