defensive substring
Getty Ritter
3 years ago
209 | 209 |
(cdr lst))))))
|
210 | 210 |
|
211 | 211 |
(define (string-take str i)
|
212 | |
(substring str 0 i))
|
| 212 |
(substring str 0 (min i (string-length str))))
|
213 | 213 |
|
214 | 214 |
(define (string-drop str i)
|
215 | 215 |
(let ((l (string-length str)))
|