摘要: (defun second-word (str) (let ((pl (+ (position #\ str) 1))) (subseq str pl (position #\ str :start pl)))) 阅读全文
posted @ 2012-12-15 13:41 flowjacky 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 (defun mirror? (s)2 (let ((len (length s)))3 (if (evenp len)4 (do ((start 0 (+ start 1))5 (end (- len 1) (- end 1)))6 ((or (> start end)7 (not (equal (elt s start)8 (elt s end))))9 (> start end))))))相... 阅读全文
posted @ 2012-12-15 10:37 flowjacky 阅读(230) 评论(0) 推荐(0) 编辑