Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
8
Task/Tokenize-a-string/Scheme/tokenize-a-string-1.scm
Normal file
8
Task/Tokenize-a-string/Scheme/tokenize-a-string-1.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(use-modules (ice-9 regex))
|
||||
(define s "Hello,How,Are,You,Today")
|
||||
(define words (map match:substring (list-matches "[^,]+" s)))
|
||||
|
||||
(do ((n 0 (+ n 1))) ((= n (length words)))
|
||||
(display (list-ref words n))
|
||||
(if (< n (- (length words) 1))
|
||||
(display ".")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue