nendo 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/util/list.nnd CHANGED
@@ -58,6 +58,8 @@
58
58
  [else lis])))
59
59
 
60
60
  (define (drop-right* lis k)
61
+ (when (or (not (integer? k)) (negative? k))
62
+ (error "index must be non-negative integer" k))
61
63
  (let1 len (length lis)
62
64
  (if (<= k len) (take lis (- len k)) '())))
63
65