我需要定義「字符串權」 程序奇數串如何在方案中定義字符串右鍵?
(define string-right
(lambda (x)
(substring x (quotient (string-length x) 2) (string-length x))))
不工作長度 但prcoedure甚至上字符串長度
(define string-right
(lambda (x)
(substring x (+ (quotient (string-length x) 2) 1)(string-length x))))
不工作。請幫忙。沮喪。
你所期望的要返回:'(字符串右 「富酒吧巴茲」)'? –