Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Substring/Scheme/substring.ss
Normal file
18
Task/Substring/Scheme/substring.ss
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