1
(define len (string-length "James ApR23Trb&%25G)(=?vqa"))
(define (divide-string str)
(let (x)
(if (char-whitespace? (string-ref str x))
(substring str (+ 1 x) (- len 1))
(printf "an invalid input!"))
))
(divide-string "James ApR23Trb&%25G)(=?vqa")
空白に分割された文字列があります。私は2つの部分文字列を処理する必要があります 。 1つは空白になり、もう1つは空白になります スペースです。しかし、私はxで空白のインデックスを扱うことができませんでした。スキームstring-refとchar-whitespace?使用する
Any help will be appraciated. Thank you even now.