我正在寻找如何循环LISP中的字符串来检查alpha char或空格.像"咖啡是朋友"这样的句子我想要检查为有效.但是当我这样做时(每个#'alpha-char-p"咖啡都是最好的"')它会在空间上失败,因为空间在技术上不是alpha-char.建议?
谢谢!
我无法在lisp中使用简单的while循环!
(loop (while (row >= 0))
setf(row (- row 1))
(collect (findIndex row col))
Run Code Online (Sandbox Code Playgroud)
当row大于或等于0时,我想减少行并收集findIndex方法给出的结果.假设给出了col.
谢谢!!!