Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
18
Task/Substring/Scheme/substring.scm
Normal file
18
Task/Substring/Scheme/substring.scm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
(define s "Hello, world!")
|
||||
(define n 5)
|
||||
(define m (+ n 6))
|
||||
|
||||
(display (substring s n m))
|
||||
(newline)
|
||||
|
||||
(display (substring s n))
|
||||
(newline)
|
||||
|
||||
(display (substring s 0 (- (string-length s) 1)))
|
||||
(newline)
|
||||
|
||||
(display (substring s (string-index s #\o) m))
|
||||
(newline)
|
||||
|
||||
(display (substring s (string-contains s "lo") m))
|
||||
(newline)
|
||||
Loading…
Add table
Add a link
Reference in a new issue