added check for exact numbers
parent
672bf1d6c9
commit
33097d6396
|
@ -165,6 +165,7 @@
|
|||
(define (rm/remove-nicething item-number)
|
||||
(let ([listof-items (file->lines program-path)])
|
||||
(if (and (not (null? listof-items))
|
||||
(exact? item-number)
|
||||
(>= item-number 0)
|
||||
(< item-number (length listof-items)))
|
||||
(let* ([item-to-remove (list-ref listof-items item-number)]
|
||||
|
|
Loading…
Reference in New Issue