0] (format t "~a~%~a" "asafadf" "11111")
asafadf
11111
NIL
0[5] (parse-integer "aaa2":junk-allowed t)
NIL
0
0[5] (parse-integer "5552":junk-allowed t)
5552
4
0[5]
本文通过具体示例展示了如何使用解析整数函数,并说明了允许垃圾字符的情况。通过对比不同字符串输入的结果,帮助理解函数的行为。
0] (format t "~a~%~a" "asafadf" "11111")
asafadf
11111
NIL
0[5] (parse-integer "aaa2":junk-allowed t)
NIL
0
0[5] (parse-integer "5552":junk-allowed t)
5552
4
0[5]
1万+

被折叠的 条评论
为什么被折叠?