Remove string-repeat.
This commit is contained in:
parent
f297e876cc
commit
a576779891
1 changed files with 0 additions and 11 deletions
|
@ -28,8 +28,6 @@
|
|||
(module
|
||||
util-string
|
||||
(
|
||||
string-repeat
|
||||
|
||||
string-first+rest
|
||||
|
||||
string-utf8?
|
||||
|
@ -48,15 +46,6 @@
|
|||
(chicken irregex)
|
||||
testing)
|
||||
|
||||
;; Repeats given string.
|
||||
(define (string-repeat str rep)
|
||||
(let loop ((rep rep)
|
||||
(res '()))
|
||||
(if (> rep 0)
|
||||
(loop (sub1 rep)
|
||||
(cons str res))
|
||||
(string-intersperse res ""))))
|
||||
|
||||
;; Extracts first token and the rest as separate string
|
||||
(define (string-first+rest str)
|
||||
(let ((dm (irregex-search (irregex "[ \\t]" 'u) str)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue